From 8abcf12cb812fd1725658017f92a1788d1c07c45 Mon Sep 17 00:00:00 2001 From: Cyrus Hiatt Date: Wed, 27 Mar 2019 17:38:17 -0700 Subject: [PATCH] Addresses error in constraint migration, re #4375 --- .../migrations/4375_add_unique_constraint_models.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/arches/app/models/migrations/4375_add_unique_constraint_models.py b/arches/app/models/migrations/4375_add_unique_constraint_models.py index 51c315e1e6d..bfbad31140e 100644 --- a/arches/app/models/migrations/4375_add_unique_constraint_models.py +++ b/arches/app/models/migrations/4375_add_unique_constraint_models.py @@ -21,8 +21,7 @@ class Migration(migrations.Migration): ('card', models.ForeignKey( db_column='cardid', on_delete=django.db.models.deletion.CASCADE, - to='models.CardModel')), - ('uniquetoallinstances', models.BooleanField(default=False)), + to='models.CardModel')) ], options={ 'db_table': 'card_constraints', @@ -52,4 +51,9 @@ class Migration(migrations.Migration): name='nodes', field=models.ManyToManyField(through='models.ConstraintXNode', to='models.Node'), ), + migrations.AddField( + model_name='constraintmodel', + name='uniquetoallinstances', + field=models.BooleanField(default=False), + ), ]