From 1fc2c70f7613e014a31771afa537439b28dd35fb Mon Sep 17 00:00:00 2001 From: Hasan Ramezani Date: Sun, 14 Jul 2019 01:24:35 +0200 Subject: Fixed #30593 -- Added support for check constraints on MariaDB 10.2+. --- tests/schema/tests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/schema') diff --git a/tests/schema/tests.py b/tests/schema/tests.py index 91760987d7..2a22e9dec3 100644 --- a/tests/schema/tests.py +++ b/tests/schema/tests.py @@ -1556,7 +1556,7 @@ class SchemaTests(TransactionTestCase): # Ensure the m2m table is still there. self.assertEqual(len(self.column_classes(LocalM2M)), 1) - @skipUnlessDBFeature('supports_column_check_constraints') + @skipUnlessDBFeature('supports_column_check_constraints', 'can_introspect_check_constraints') def test_check_constraints(self): """ Tests creating/deleting CHECK constraints @@ -1586,7 +1586,7 @@ class SchemaTests(TransactionTestCase): if not any(details['columns'] == ['height'] and details['check'] for details in constraints.values()): self.fail("No check constraint for height found") - @skipUnlessDBFeature('supports_column_check_constraints') + @skipUnlessDBFeature('supports_column_check_constraints', 'can_introspect_check_constraints') def test_remove_field_check_does_not_remove_meta_constraints(self): with connection.schema_editor() as editor: editor.create_model(Author) -- cgit v1.3