aerich icon indicating copy to clipboard operation
aerich copied to clipboard

Create empty migration template using migrate

Open madnesspie opened this issue 4 years ago • 1 comments

Hi! Thanks for new migrations format, .sql is really convenient.

I have a little enhancement proposal. Sometimes a programmer needs to write migration manually. For example to define partial index or create a date migration. In this case a programmer should go to the REPL and generate the string then copy it and create a migration file.

I guess a more convenient way is to use --empty console option for aerich migrate command how it works in django. If you agree I can contribute it.

madnesspie avatar Dec 04 '20 06:12 madnesspie

That's a good point. Of course PR is welcome. And Makefile is useful to do contribution.

long2ice avatar Dec 04 '20 07:12 long2ice