pop
pop copied to clipboard
Generate Migrations from Model
Hello
Is there a way to generate automatically migrations based on the difference between the models and the database ?
Hello @guxx, right now it's not supported, but some help is welcome!
How about it works like this?
if you run generate migrate, at first soda checks unapplied migration existing, if there are, generator’ll stop. else it checks the latest database states and if differences have occurred, generates migrations.
$ soda generate fizz
if you want to make empty migrations file, you could run commands with argument --empty like django command,
$ soda generate fizz [migration_name] --empty
or
$ soda generate --emptymigrate
thank you.
Any updates regarding this proposal?
@Roccoriu no, currently we have no plan on this