alembic_version never gets updated #1049
-
Describe the bug
Summary:
Expected behavior |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
hi - if you enable INFO logging for the sqlalchemy.engine logger in your alembic.ini, the SQL being emitted will be shown when you run the migrations for real, that is, not using the things to look at here include how the |
Beta Was this translation helpful? Give feedback.
hi -
if you enable INFO logging for the sqlalchemy.engine logger in your alembic.ini, the SQL being emitted will be shown when you run the migrations for real, that is, not using the
--sql
option. You want to see that the INSERT into alembic_version occurs, that it's in the correct database that you intend, and then also that you see a COMMIT occur afterwards so that the transaction is committed.things to look at here include how the
env.py
file has been changed if at all, which may affect if the transaction is not being completed, as well as database connectivity, where the database that's being connected towards fromcreate_engine()
is in fact the same database that you see when you lo…