You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The lintmigrations should show no errors. The rating field was removed from the state in 0002_remove_product_rating_from_state which makes 0003_remove_product_rating_from_db backwards compatible.
Questions / Comments
Does this seem like the correct solution? One issue is that these two migrations are ONLY backwards compatible if they're deployed separately. Deploying them both at once is obviously backwards incompatible.
If we can't track / enforce when these migrations are deployed, is the recommended solution to continue to report as backwards incompatible and require the user to ignore the false positive?
$ python manage.py lintmigrations -q ok -- ignore_name 0004_remove_metabase_field_from_db
# No errors
The text was updated successfully, but these errors were encountered:
Steps to Reproduce
Let's say I have the following Django model:
I want to remove the rating field in a backwards-compatible way, so I create the following two migrations:
Migration 1: Remove rating field from the state
Migration 2: Remove rating field from the database
The
lintmigrations
command reports that0003_remove_product_rating_from_db
is backwards incompatible:Expected Result
The
lintmigrations
should show no errors. Therating
field was removed from the state in0002_remove_product_rating_from_state
which makes0003_remove_product_rating_from_db
backwards compatible.Questions / Comments
Does this seem like the correct solution? One issue is that these two migrations are ONLY backwards compatible if they're deployed separately. Deploying them both at once is obviously backwards incompatible.
If we can't track / enforce when these migrations are deployed, is the recommended solution to continue to report as backwards incompatible and require the user to ignore the false positive?
The text was updated successfully, but these errors were encountered: