Skip to content

Commit 00b4452

Browse files
committed
run migrate_references only on the qmra db
1 parent 4757c00 commit 00b4452

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ qmra-prod.db
99
dump*
1010
prod-migrations/
1111
*.tar
12-
.vscode
12+
.vscode
13+
test.zip

qmra/risk_assessment/migrations/0008_auto_20260115_1342.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44

55

66
def migrate_references(apps, schema_editor):
7-
7+
if schema_editor.connection.alias != "qmra":
8+
return
89
QMRATreatment = apps.get_model("risk_assessment", "QMRATreatment")
910
for treatment in QMRATreatment.objects.all():
1011

0 commit comments

Comments
 (0)