1
0
mirror of https://github.com/django/django.git synced 2025-10-25 22:56:12 +00:00

[1.7.x] Renamed DatabaseFeature.supports_check_constraints to supports_column_check_constraints.

Thanks maxi for the suggestion.

Backport of 82c935d44c from master
This commit is contained in:
Tim Graham
2014-06-16 19:25:13 -04:00
parent 7f095ea744
commit dc7d0f50e2
4 changed files with 4 additions and 4 deletions

View File

@@ -478,7 +478,7 @@ class SchemaTests(TransactionTestCase):
BookWithM2M._meta.local_many_to_many.remove(new_field)
del BookWithM2M._meta._m2m_cache
@unittest.skipUnless(connection.features.supports_check_constraints, "No check constraints")
@unittest.skipUnless(connection.features.supports_column_check_constraints, "No check constraints")
def test_check_constraints(self):
"""
Tests creating/deleting CHECK constraints