mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-01 15:46:07 -05:00
Fixed the downgrade script
This commit is contained in:
committed by
Chris Hill-Scott
parent
6488feaeec
commit
489f95c8cd
@@ -22,7 +22,8 @@ def upgrade():
|
||||
|
||||
|
||||
def downgrade():
|
||||
op.add_column('jobs', sa.Column('status', postgresql.ENUM('pending', 'in progress', 'finished', 'sending limits exceeded', name='job_status_types'), autoincrement=False, nullable=False))
|
||||
# this downgrade leaves status empty and with no not null constraint.
|
||||
op.add_column('jobs', sa.Column('status', postgresql.ENUM('pending', 'in progress', 'finished', 'sending limits exceeded', name='job_status_types'), autoincrement=False, nullable=True))
|
||||
op.alter_column('jobs', 'job_status',
|
||||
existing_type=sa.VARCHAR(length=255),
|
||||
nullable=True)
|
||||
|
||||
Reference in New Issue
Block a user