mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-23 17:01:35 -05:00
Another migration fix
This commit is contained in:
@@ -18,7 +18,12 @@ def upgrade():
|
||||
### commands auto generated by Alembic - please adjust! ###
|
||||
job_status_types = sa.Enum('pending', 'in progress', 'finished', name='job_status_types')
|
||||
job_status_types.create(op.get_bind())
|
||||
op.add_column('jobs', sa.Column('status', job_status_types, nullable=False, default='pending'))
|
||||
op.add_column('jobs', sa.Column('status', job_status_types, nullable=True))
|
||||
op.get_bind()
|
||||
op.execute("update jobs set status='pending'")
|
||||
op.alter_column('jobs', 'status', nullable=False)
|
||||
|
||||
|
||||
### end Alembic commands ###
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user