alembic check detects upgrade operations but flask-migrate doesn't generate new revision (v.2.5.3) #507
Unanswered
HusseinWarsame
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Do you have the actual details included in the |
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
-
Hello,
My team has a few redundant operations in the revision history of some our projects. I'd like to remove them since it is conflicting with the adoption of a naming convention but have encountered some unexpected errors.
For example,
Here we have the addition and removal of the same foreign key on two different tables. My expectation was that the "sum" of these operations would not count as a pending upgrade operation. This is because when I try to generate a migration with Flask-Migrate for these pending upgrade operations, there are no changes in the schema detected:
This doesn't seem like expected behaviour according to the alembic documentation
I've raised a similar discussion with the alembic maintainers but they've deemed it as expected behaviour. If there's anything on the flask-migrate side of things that I'm misunderstanding, please let me know.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions