kawadhiya21 / mysql-migrations

A tool to use with mysql package to maintain migrations
MIT License
31 stars 25 forks source link

Multiple statement migrations? #16

Closed fuschini closed 3 years ago

fuschini commented 3 years ago

Is there a way to do this?

If no, is it planned on the roadmap?

kawadhiya21 commented 3 years ago

What is that? Can you give an example?

kawadhiya21 commented 3 years ago

Closing since no response

llibdude commented 3 years ago

What they meant was could you do something like

module.exports = {
  up: "SELECT 1; SELECT 1;"
  down: '',
};

Which from my test, no, you can't.

kawadhiya21 commented 3 years ago

Are you still looking for that feature?

fuschini commented 3 years ago

Yes @llibdude, that's what I meant.

@kawadhiya21, I'm not looking for it anymore because I started using another lib for my migrations that supports that (typeorm native migrations).