New sequence discovered in db migration test #1474
-
We are upgrading from SqlAlchemy 1.3 to 2.x, Alembic from 1.4.2 to 1.13.1. We have a test case that spins up a new DB, runs all of the migrations on it, and then checks to see if the current models we've defined would generate new schemas. I am getting the following failure:
The only thing I can tell is that we moved from something like this:
to
What's odd is that when I try to generate a new migration file via flask_migrate, I'm not getting any changes so I don't know where that detected sequence is coming from. Is this a case where I just need to update my test case? Is there a way to set something to ignore these so that it says |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi, That's expected, you are updating a lot of versions at once I think you may use the include_names function to control what alembic seems, but maybe you are better off using the check command of alembic that will fail of there are changes detected |
Beta Was this translation helpful? Give feedback.
After some further debugging I think the problem is with
flask-migrate
. It should be passing some values around but don't seem to be. I'm following up with them here: miguelgrinberg/Flask-Migrate#545I appreciate you taking the time to provide some suggestions!