Skip to content

Commit 0965674

Browse files
authored
Disable the check contraint, was mistakingly commented out (#540)
2 parents 4958d61 + 3fa9b34 commit 0965674

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

alembic/alembic/versions/459323683348_synchronize_identifiers.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,9 @@ def upgrade() -> None:
9898
# Now we can continue with data migration
9999
# First we delete a conflicting CHECK constraint: https://github.com/aiondemand/AIOD-rest-api/issues/518
100100
logger.info("Dropping contact CHECK constraint.")
101-
# op.execute(
102-
# "ALTER TABLE contact DROP CONSTRAINT contact_person_and_organisation_not_both_filled"
103-
# )
101+
op.execute(
102+
"ALTER TABLE contact DROP CONSTRAINT contact_person_and_organisation_not_both_filled"
103+
)
104104

105105
# Then we update foreign key constraints to ON UPDATE CASCADE to make data migration easier
106106
with DbSession() as session:

0 commit comments

Comments
 (0)