Using flask-migrate
and flask-script
, I set my project up, such that I only have to do
python manage.py db migrate
Inside the migrations folder, I get files such as
0f46602752b7_.py
8fdf8259859b_.py
There is no guarantee that the first migration precedes the second one. Django fixes this issue by prefixing all migrations with an auto-incrementing number. Can we tell flask-migrate / alembic to do the same?
Ideally, the two files in the example above would be
001_8fdf8259859b_.py
002_0f46602752b7_.py