Merge pull request #2848 from alphagov/add-commit-migration

Adding a commit at the end of each migration file.
This commit is contained in:
Katie Smith
2020-05-20 16:59:26 +01:00
committed by GitHub
2 changed files with 2 additions and 0 deletions

View File

@@ -30,6 +30,7 @@ def upgrade():
""")
if environment not in ["live", "production"]:
op.execute('ALTER TABLE notification_history DROP CONSTRAINT IF EXISTS chk_notification_history_postage_null')
op.execute('COMMIT')
def downgrade():

View File

@@ -38,6 +38,7 @@ def upgrade():
)
NOT VALID
""")
op.execute('COMMIT')
def downgrade():