mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #33413 -- Made migrations propage collations to related fields.
This commit is contained in:
committed by
Mariusz Felisiak
parent
694cf458f1
commit
aca9bb2a12
@@ -65,6 +65,16 @@ class MigrationTestBase(TransactionTestCase):
|
||||
def assertColumnNotNull(self, table, column, using="default"):
|
||||
self.assertFalse(self._get_column_allows_null(table, column, using))
|
||||
|
||||
def _get_column_collation(self, table, column, using):
|
||||
return next(
|
||||
f.collation
|
||||
for f in self.get_table_description(table, using=using)
|
||||
if f.name == column
|
||||
)
|
||||
|
||||
def assertColumnCollation(self, table, column, collation, using="default"):
|
||||
self.assertEqual(self._get_column_collation(table, column, using), collation)
|
||||
|
||||
def assertIndexExists(
|
||||
self, table, columns, value=True, using="default", index_type=None
|
||||
):
|
||||
|
||||
Reference in New Issue
Block a user