cr-connect-workflow/migrations/versions/ddd5fc9ea75b_.py

37 lines
1010 B
Python
Raw Normal View History

"""empty message
2020-03-20 15:19:43 +00:00
Revision ID: ddd5fc9ea75b
Revises: 65f3fce6031a
Create Date: 2020-03-20 11:19:01.825283
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
2020-03-20 15:19:43 +00:00
revision = 'ddd5fc9ea75b'
down_revision = '65f3fce6031a'
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
2020-03-20 15:19:43 +00:00
op.add_column('file', sa.Column('irb_doc_code', sa.String(), nullable=True))
op.add_column('file', sa.Column('is_reference', sa.Boolean(), nullable=False))
op.alter_column('file', 'primary',
existing_type=sa.BOOLEAN(),
nullable=False)
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.alter_column('file', 'primary',
existing_type=sa.BOOLEAN(),
nullable=True)
2020-03-20 15:19:43 +00:00
op.drop_column('file', 'is_reference')
op.drop_column('file', 'irb_doc_code')
# ### end Alembic commands ###