mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-22 11:23:10 +00:00
Fix ordre des migrations
This commit is contained in:
parent
004f6099f5
commit
1a59c85577
3 changed files with 10 additions and 6 deletions
|
@ -9,7 +9,7 @@ import django.db.models.deletion
|
||||||
class Migration(migrations.Migration):
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
('topologie', '0051_transferports'),
|
('topologie', '0050_port_new_switch'),
|
||||||
]
|
]
|
||||||
|
|
||||||
def transfer_sw(apps, schema_editor):
|
def transfer_sw(apps, schema_editor):
|
||||||
|
@ -36,7 +36,4 @@ class Migration(migrations.Migration):
|
||||||
|
|
||||||
operations = [
|
operations = [
|
||||||
migrations.RunPython(transfer_sw, untransfer_sw),
|
migrations.RunPython(transfer_sw, untransfer_sw),
|
||||||
migrations.DeleteModel(
|
|
||||||
name='Switch',
|
|
||||||
),
|
|
||||||
]
|
]
|
|
@ -8,7 +8,7 @@ from django.db import migrations
|
||||||
class Migration(migrations.Migration):
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
('topologie', '0050_port_new_switch'),
|
('topologie', '0051_switchs_machine'),
|
||||||
]
|
]
|
||||||
|
|
||||||
def transfer_port(apps, schema_editor):
|
def transfer_port(apps, schema_editor):
|
||||||
|
@ -24,6 +24,10 @@ class Migration(migrations.Migration):
|
||||||
return
|
return
|
||||||
|
|
||||||
operations = [
|
operations = [
|
||||||
|
migrations.AlterUniqueTogether(
|
||||||
|
name='port',
|
||||||
|
unique_together=set([]),
|
||||||
|
),
|
||||||
migrations.RunPython(transfer_port, untransfer_port),
|
migrations.RunPython(transfer_port, untransfer_port),
|
||||||
migrations.RemoveField(
|
migrations.RemoveField(
|
||||||
model_name='port',
|
model_name='port',
|
|
@ -9,12 +9,15 @@ import django.db.models.deletion
|
||||||
class Migration(migrations.Migration):
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
('topologie', '0052_switchs_machine'),
|
('topologie', '0052_transferports'),
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
operations = [
|
operations = [
|
||||||
|
migrations.DeleteModel(
|
||||||
|
name='Switch',
|
||||||
|
),
|
||||||
migrations.RenameModel(
|
migrations.RenameModel(
|
||||||
old_name='NewSw',
|
old_name='NewSw',
|
||||||
new_name='Switch',
|
new_name='Switch',
|
||||||
|
|
Loading…
Reference in a new issue