mirror of https://github.com/django/django.git
Refs #35234 -- Skipped CheckConstraint system checks if not supported.
Thanks Tim Graham for the report.
Regression in 0fb104dda2
.
This commit is contained in:
parent
0df520979a
commit
425b26092f
|
@ -200,7 +200,11 @@ class CheckConstraint(BaseConstraint):
|
|||
id="models.W027",
|
||||
)
|
||||
)
|
||||
else:
|
||||
elif (
|
||||
connection.features.supports_table_check_constraints
|
||||
or "supports_table_check_constraints"
|
||||
not in model._meta.required_db_features
|
||||
):
|
||||
references = set()
|
||||
condition = self.condition
|
||||
if isinstance(condition, Q):
|
||||
|
|
Loading…
Reference in New Issue