Skip to content

alembic_version never gets updated #1049

Answered by zzzeek
Olamyy asked this question in Usage Questions
Discussion options

You must be logged in to vote

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 from create_engine() is in fact the same database that you see when you lo…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Olamyy
Comment options

@zzzeek
Comment options

@Olamyy
Comment options

Answer selected by Olamyy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
requires triage New issue that requires categorization
2 participants
Converted from issue

This discussion was converted from issue #1048 on June 02, 2022 15:52.