Add archived column to jobs table with default value of false

This commit is contained in:
Pea Tyczynska
2018-11-22 15:51:10 +00:00
committed by Alexey Bezhan
parent e5fd027192
commit 641cb6ec36
2 changed files with 27 additions and 0 deletions

View 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 ###