Schema alter_field - check constraints

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Schema alter_field - check constraints


Digging into schema migration code (and updating this to work with Firebird [1]) I see in _alter_field method [2] a validation for  Change check constraints?
Of course, this fails related to the test method "test_alter_field_default_dropped" because in Firebird check contraints are table based and not column based.
Then, there is a feature property "supports_column_check_constraints", now the question is Should not we use that feature to validate if is necessary check the number of check constraints?

If supports_column_check_constraints is False no validation is necessary, right?



You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at
To view this discussion on the web visit
For more options, visit