paperwork: Fix migration from scratch, instead of original manual db
This commit is contained in:
parent
41d8ed691b
commit
e5bf56113d
@ -28,7 +28,6 @@ def migrate_version(apps, schema_editor):
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
("paperwork", "0009_rename_department_list_moderator_flag_to_shop_lead_flag"),
|
||||
]
|
||||
@ -63,17 +62,6 @@ class Migration(migrations.Migration):
|
||||
field=models.DateField(blank=True, null=True),
|
||||
),
|
||||
migrations.RunPython(migrate_version, atomic=True),
|
||||
migrations.AlterField(
|
||||
model_name="certificationversion",
|
||||
name="definition",
|
||||
field=models.ForeignKey(
|
||||
db_constraint=False,
|
||||
db_index=False,
|
||||
db_column="Certification",
|
||||
on_delete=django.db.models.deletion.PROTECT,
|
||||
to="paperwork.certificationdefinition",
|
||||
),
|
||||
),
|
||||
migrations.RemoveConstraint(
|
||||
model_name="certificationversion",
|
||||
name="unique_certification_version",
|
||||
@ -85,15 +73,6 @@ class Migration(migrations.Migration):
|
||||
name="unique_certification_version",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name="certificationversion",
|
||||
name="definition",
|
||||
field=models.ForeignKey(
|
||||
db_column="Certification",
|
||||
on_delete=django.db.models.deletion.PROTECT,
|
||||
to="paperwork.certificationdefinition",
|
||||
),
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name="certificationversion",
|
||||
name="version",
|
||||
|
Loading…
Reference in New Issue
Block a user