mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-23 08:51:30 -05:00
Merge pull request #2848 from alphagov/add-commit-migration
Adding a commit at the end of each migration file.
This commit is contained in:
@@ -30,6 +30,7 @@ def upgrade():
|
|||||||
""")
|
""")
|
||||||
if environment not in ["live", "production"]:
|
if environment not in ["live", "production"]:
|
||||||
op.execute('ALTER TABLE notification_history DROP CONSTRAINT IF EXISTS chk_notification_history_postage_null')
|
op.execute('ALTER TABLE notification_history DROP CONSTRAINT IF EXISTS chk_notification_history_postage_null')
|
||||||
|
op.execute('COMMIT')
|
||||||
|
|
||||||
|
|
||||||
def downgrade():
|
def downgrade():
|
||||||
|
|||||||
@@ -38,6 +38,7 @@ def upgrade():
|
|||||||
)
|
)
|
||||||
NOT VALID
|
NOT VALID
|
||||||
""")
|
""")
|
||||||
|
op.execute('COMMIT')
|
||||||
|
|
||||||
|
|
||||||
def downgrade():
|
def downgrade():
|
||||||
|
|||||||
Reference in New Issue
Block a user