mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-09 23:02:13 -05:00
Fix the downgrade of the migration.
By the way I'm not concerned about fixing service.postage data if we have to rollback.
This commit is contained in:
@@ -56,7 +56,7 @@ def upgrade():
|
||||
def downgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.add_column('services_history', sa.Column('postage', sa.VARCHAR(length=255), autoincrement=False, nullable=True))
|
||||
op.add_column('services', sa.Column('postage', sa.VARCHAR(length=255), autoincrement=False, nullable=False))
|
||||
op.add_column('services', sa.Column('postage', sa.VARCHAR(length=255), autoincrement=False, nullable=True))
|
||||
op.execute("INSERT INTO service_permission_types VALUES ('choose_postage')")
|
||||
op.execute("""
|
||||
ALTER TABLE templates ADD CONSTRAINT "chk_templates_postage_null"
|
||||
|
||||
Reference in New Issue
Block a user