Target database is not up to date

前端 未结 11 1206
别那么骄傲
别那么骄傲 2020-12-12 16:54

I\'d like to make a migration for a Flask app. I am using Alembic.

However, I receive the following error.

T         


        
11条回答
  •  旧时难觅i
    2020-12-12 17:38

    $ flask db stamp head  # To set the revision in the database to the head, without performing any migrations. You can change head to the required change you want.
    $ flask db migrate  # To detect automatically all the changes.
    $ flask db upgrade  # To apply all the changes.
    

    You can find more info at the documentation https://flask-migrate.readthedocs.io/en/latest/

提交回复
热议问题