We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4958d61 commit 3fa9b34Copy full SHA for 3fa9b34
alembic/alembic/versions/459323683348_synchronize_identifiers.py
@@ -98,9 +98,9 @@ def upgrade() -> None:
98
# Now we can continue with data migration
99
# First we delete a conflicting CHECK constraint: https://github.com/aiondemand/AIOD-rest-api/issues/518
100
logger.info("Dropping contact CHECK constraint.")
101
- # op.execute(
102
- # "ALTER TABLE contact DROP CONSTRAINT contact_person_and_organisation_not_both_filled"
103
- # )
+ op.execute(
+ "ALTER TABLE contact DROP CONSTRAINT contact_person_and_organisation_not_both_filled"
+ )
104
105
# Then we update foreign key constraints to ON UPDATE CASCADE to make data migration easier
106
with DbSession() as session:
0 commit comments