[3.0.x] Refs #30591 -- Fixed too long identifier crash in migrations.test_operations on MySQL 8.0.16+.
Backport of 937ddaff55
from master
This commit is contained in:
parent
acb11725f8
commit
8ce932a20a
|
@ -1310,7 +1310,7 @@ class OperationTests(OperationTestBase):
|
|||
|
||||
@skipUnlessDBFeature('supports_foreign_keys')
|
||||
def test_alter_field_reloads_state_on_fk_with_to_field_target_type_change(self):
|
||||
app_label = 'alter_field_reloads_state_on_fk_with_to_field_target_type_change'
|
||||
app_label = 'test_alflrsfkwtflttc'
|
||||
project_state = self.apply_operations(app_label, ProjectState(), operations=[
|
||||
migrations.CreateModel('Rider', fields=[
|
||||
('id', models.AutoField(primary_key=True)),
|
||||
|
@ -1330,7 +1330,7 @@ class OperationTests(OperationTestBase):
|
|||
|
||||
@skipUnlessDBFeature('supports_foreign_keys')
|
||||
def test_alter_field_reloads_state_on_fk_with_to_field_related_name_target_type_change(self):
|
||||
app_label = 'alter_field_reloads_state_on_fk_with_to_field_rn_target_type_change'
|
||||
app_label = 'test_alflrsfkwtflrnttc'
|
||||
project_state = self.apply_operations(app_label, ProjectState(), operations=[
|
||||
migrations.CreateModel('Rider', fields=[
|
||||
('id', models.AutoField(primary_key=True)),
|
||||
|
|
Loading…
Reference in New Issue