From 5b074d2a1ce46454a7b8c2059a74992246043d38 Mon Sep 17 00:00:00 2001 From: Alex Lubbock Date: Sun, 9 Mar 2025 02:36:31 +0000 Subject: [PATCH] fix: migration issue on postgres (#113) Fix migration issue when installing from scratch with postgres. --- .../antigenapi/migrations/0014_antigen_short_long_names.py | 5 +++++ backend/setup.cfg | 1 + 2 files changed, 6 insertions(+) diff --git a/backend/antigenapi/migrations/0014_antigen_short_long_names.py b/backend/antigenapi/migrations/0014_antigen_short_long_names.py index 21e1a73..50a4c92 100644 --- a/backend/antigenapi/migrations/0014_antigen_short_long_names.py +++ b/backend/antigenapi/migrations/0014_antigen_short_long_names.py @@ -10,6 +10,11 @@ class Migration(migrations.Migration): ] operations = [ + migrations.AlterField( + model_name="antigen", + name="short_name", + field=models.CharField(max_length=32), + ), migrations.RenameField( model_name="antigen", old_name="short_name", diff --git a/backend/setup.cfg b/backend/setup.cfg index 0a16d73..07f69d7 100644 --- a/backend/setup.cfg +++ b/backend/setup.cfg @@ -65,6 +65,7 @@ extend-ignore = F722, exclude = migrations + .venv [pydocstyle] convention = google