Check for pending/outstanding changes #1072
-
As a part of our CI/CD pipelines for Django projects, we tend to include a check for any model changes that haven't been reflected in a migration file, using: python manage.py makemigrations --check --dry-run This exits with exit code 1 if the Django migration framework detects new changes, and fails our pipeline. This is great, since we generally want all model changes to be declared in migration files before deploying our application. Does something like this exist for |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
yes, there's a recipe for this case here (that should really be in the cookbook) and there are projects on pypi that do this also such as https://github.com/4Catalyzer/alembic-autogen-check https://pypi.org/project/sqlalchemy-diff/ |
Beta Was this translation helpful? Give feedback.
yes, there's a recipe for this case here (that should really be in the cookbook) and there are projects on pypi that do this also such as https://github.com/4Catalyzer/alembic-autogen-check https://pypi.org/project/sqlalchemy-diff/