mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-24 01:11:38 -05:00
Add archived column to jobs table with default value of false
This commit is contained in:
committed by
Alexey Bezhan
parent
e5fd027192
commit
641cb6ec36
26
migrations/versions/0245_archived_flag_jobs.py
Normal file
26
migrations/versions/0245_archived_flag_jobs.py
Normal file
@@ -0,0 +1,26 @@
|
||||
"""
|
||||
|
||||
Revision ID: 0245_archived_flag_jobs
|
||||
Revises: 0244_another_letter_org
|
||||
Create Date: 2018-11-22 16:32:01.105803
|
||||
|
||||
"""
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
|
||||
revision = '0245_archived_flag_jobs'
|
||||
down_revision = '0244_another_letter_org'
|
||||
|
||||
|
||||
def upgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.add_column('jobs', sa.Column('archived', sa.Boolean(), nullable=False, server_default=sa.false()))
|
||||
|
||||
# ### end Alembic commands ###
|
||||
|
||||
|
||||
def downgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.drop_column('jobs', 'archived')
|
||||
# ### end Alembic commands ###
|
||||
Reference in New Issue
Block a user