Flask-migrate: No changes in schema detected.

Created on 13 Nov 2018  路  2Comments  路  Source: miguelgrinberg/Flask-Migrate

First migrations were quite ok, but I've just added a new table and executed
flask db migrate
which responded me with
INFO [alembic.runtime.migration] Context impl PostgresqlImpl. INFO [alembic.runtime.migration] Will assume transactional DDL. INFO [alembic.env] No changes in schema detected.
I would be grateful if you could help me to deal with this problem.

question

Most helpful comment

Good afternoon, Miguel! I did import my model and there was no table after migration. Anyway when I reinstalled my virtual environment (and deleted migrations folder as well) everything wen quite well then.

All 2 comments

Did you import your new model? If yes, did you make sure your database does not have the new table when you generated the migration?

Good afternoon, Miguel! I did import my model and there was no table after migration. Anyway when I reinstalled my virtual environment (and deleted migrations folder as well) everything wen quite well then.

Was this page helpful?
0 / 5 - 0 ratings