mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-01 23:55:58 -05:00
Add default value for non nullable column
This commit is contained in:
@@ -18,7 +18,7 @@ def upgrade():
|
|||||||
### commands auto generated by Alembic - please adjust! ###
|
### commands auto generated by Alembic - please adjust! ###
|
||||||
job_status_types = sa.Enum('pending', 'in progress', 'finished', name='job_status_types')
|
job_status_types = sa.Enum('pending', 'in progress', 'finished', name='job_status_types')
|
||||||
job_status_types.create(op.get_bind())
|
job_status_types.create(op.get_bind())
|
||||||
op.add_column('jobs', sa.Column('status', job_status_types, nullable=False))
|
op.add_column('jobs', sa.Column('status', job_status_types, nullable=False, default='pending'))
|
||||||
### end Alembic commands ###
|
### end Alembic commands ###
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user