mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-01 23:55:58 -05:00
Adding a commit at the end of each migration file.
The assumption that a commit is issued in between migration files was false. This will force the db connection to commit, the alter table commands will complete and the alembic version updated.
This commit is contained in:
@@ -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():
|
||||
|
||||
@@ -38,6 +38,7 @@ def upgrade():
|
||||
)
|
||||
NOT VALID
|
||||
""")
|
||||
op.execute('COMMIT')
|
||||
|
||||
|
||||
def downgrade():
|
||||
|
||||
Reference in New Issue
Block a user