mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #23733 -- Fixed squashing migrations that depend on multiple apps.
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
operations = [
|
||||
migrations.RunPython(lambda apps, schema_editor: None)
|
||||
]
|
||||
@@ -0,0 +1,13 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [("app1", "1_auto")]
|
||||
|
||||
operations = [
|
||||
migrations.RunPython(lambda apps, schema_editor: None)
|
||||
]
|
||||
@@ -0,0 +1,18 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
replaces = [
|
||||
("app1", "2_auto"),
|
||||
("app1", "3_auto"),
|
||||
]
|
||||
|
||||
dependencies = [("app1", "1_auto"), ("app2", "2_auto")]
|
||||
|
||||
operations = [
|
||||
migrations.RunPython(lambda apps, schema_editor: None)
|
||||
]
|
||||
@@ -0,0 +1,13 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [("app1", "2_auto"), ("app2", "2_auto")]
|
||||
|
||||
operations = [
|
||||
migrations.RunPython(lambda apps, schema_editor: None)
|
||||
]
|
||||
@@ -0,0 +1,13 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [("app1", "3_auto")]
|
||||
|
||||
operations = [
|
||||
migrations.RunPython(lambda apps, schema_editor: None)
|
||||
]
|
||||
@@ -0,0 +1,13 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [("app1", "1_auto")]
|
||||
|
||||
operations = [
|
||||
migrations.RunPython(lambda apps, schema_editor: None)
|
||||
]
|
||||
@@ -0,0 +1,18 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
replaces = [
|
||||
("app2", "1_auto"),
|
||||
("app2", "2_auto"),
|
||||
]
|
||||
|
||||
dependencies = [("app1", "1_auto")]
|
||||
|
||||
operations = [
|
||||
migrations.RunPython(lambda apps, schema_editor: None)
|
||||
]
|
||||
@@ -0,0 +1,13 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [("app2", "1_auto")]
|
||||
|
||||
operations = [
|
||||
migrations.RunPython(lambda apps, schema_editor: None)
|
||||
]
|
||||
Reference in New Issue
Block a user