paperwork: Fix migration from scratch, instead of original manual db

This commit is contained in:
Adam Goldsmith 2023-04-30 00:29:13 -04:00
parent 41d8ed691b
commit e5bf56113d

View File

@ -28,7 +28,6 @@ def migrate_version(apps, schema_editor):
class Migration(migrations.Migration): class Migration(migrations.Migration):
dependencies = [ dependencies = [
("paperwork", "0009_rename_department_list_moderator_flag_to_shop_lead_flag"), ("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), field=models.DateField(blank=True, null=True),
), ),
migrations.RunPython(migrate_version, atomic=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( migrations.RemoveConstraint(
model_name="certificationversion", model_name="certificationversion",
name="unique_certification_version", name="unique_certification_version",
@ -85,15 +73,6 @@ class Migration(migrations.Migration):
name="unique_certification_version", 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( migrations.RemoveField(
model_name="certificationversion", model_name="certificationversion",
name="version", name="version",