diff options
| author | Hasan Ramezani <hasan.r67@gmail.com> | 2019-07-14 01:24:35 +0200 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2019-07-19 11:05:06 +0200 |
| commit | 1fc2c70f7613e014a31771afa537439b28dd35fb (patch) | |
| tree | dae8ebfe89e687edb518bd6031d89f9c47f774c9 /tests/schema/tests.py | |
| parent | 7f612eda80db1c1c8e502aced54c2062080eae46 (diff) | |
Fixed #30593 -- Added support for check constraints on MariaDB 10.2+.
Diffstat (limited to 'tests/schema/tests.py')
| -rw-r--r-- | tests/schema/tests.py | 4 |
1 files changed, 2 insertions, 2 deletions
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) |
