db-migrate / node-db-migrate

Database migration framework for node
Other
2.32k stars 360 forks source link

[feature] could we have pure SQL migration without JS files? #732

Open epoberezkin opened 3 years ago

epoberezkin commented 3 years ago

I'm submitting a...

Current behavior

Creating migration always creates a boilerplate JS file that is committed to source. The problem is that it can be edited -> broken.

It would be helpful to have only SQL files that would be processed in a uniform way, with some option.

Expected behavior

--sql option that would look for sql files instead of JS

What is the motivation / use case for changing the behavior?

As per above

epoberezkin commented 3 years ago

I can implement

danielcaldas commented 1 year ago

+1