Replies: 1 comment 2 replies
-
Hi, Have you looked into
|
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
-
Background: Some time ago I made some columns in a table in model (SQLAlchemy) nullable. For reasons, no test was added to verify my change. After deploying my change, I noticed that I forgot to write an alembic migration changing the columns to nullable
Idea: Some kind of function in alembic which checks if any migration was forgot to be written. It's similar to autogeneration but with more focus on checking rather than generation. The check could be as easy as generating an autogenerated migration and verifying that it's empty
Configuration: Sometimes differences between the database and the model are by purpose. E.g. it's okay to tell SQLAlchemy something is a primary key even if it's not (the application verifies this, but not the db due to performance reasons). So there needs to be a kind of allow list
This idea would help me a lot, but I see if it's not in the scope of alembic and/or to complicated
Beta Was this translation helpful? Give feedback.
All reactions