0
0
mirror of https://github.com/django/django.git synced 2024-12-01 15:42:04 +01:00

Made SchemaTests.test_alter_db_table_case run only on backends where table names are case-insensitive.

This commit is contained in:
Hasan Ramezani 2019-09-05 08:56:17 +02:00 committed by Mariusz Felisiak
parent 72ebe85a26
commit b93d786251

View File

@ -1130,6 +1130,7 @@ class SchemaTests(TransactionTestCase):
# The unique constraint remains. # The unique constraint remains.
self.assertEqual(counts, {'fks': expected_fks, 'uniques': 1, 'indexes': 0}) self.assertEqual(counts, {'fks': expected_fks, 'uniques': 1, 'indexes': 0})
@skipUnlessDBFeature('ignores_table_name_case')
def test_alter_db_table_case(self): def test_alter_db_table_case(self):
# Create the table # Create the table
with connection.schema_editor() as editor: with connection.schema_editor() as editor: