Upgrade problems; Online migration expected to match one row error #485
Unanswered
kingkong-cmd
asked this question in
Q&A
Replies: 1 comment 2 replies
-
This is an alembic error, so not directly to this package. If you want the best possible advice then you should ask in an Alembic forum. But in any case, the error suggests your Before you continue trying things out I would suggest you make a back up, just in case. Then you can try |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I tried to do a new migration on my local postgres dev DB, and got the "Target database is not up to date" error. So I tried to run flask db upgrade which gave me the following error:
ERROR [flask_migrate] Error: Online migration expected to match one row when updating '3fba6dfbb433' to '0db152ce17b6' in 'alembic_version'; 0 found
(0db152ce17b6 is the previous migration before I tried to create a new one today)
So I tried flask db heads, flask db history and flask db current which gave me the results below. I'm not sure how to interpret the above message together with the below output. In addition, when I run my app, everything seems to work as if the upgrade has been done. On my prod DB the upgrade seems to have been done successfully. Can anyone help me figure out what's going on?
Beta Was this translation helpful? Give feedback.
All reactions