mirror of
https://github.com/django/django.git
synced 2025-02-01 21:29:24 +00:00
Refs #35234 -- Skipped CheckConstraint system checks if not supported.
Thanks Tim Graham for the report. Regression in 0fb104dda287431f5ab74532e45e8471e22b58c8.
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…
x
Reference in New Issue
Block a user