2020-03-20 12:36:50 +00:00
|
|
|
"""empty message
|
|
|
|
|
2020-03-20 15:19:43 +00:00
|
|
|
Revision ID: ddd5fc9ea75b
|
|
|
|
Revises: 65f3fce6031a
|
|
|
|
Create Date: 2020-03-20 11:19:01.825283
|
2020-03-20 12:36:50 +00:00
|
|
|
|
|
|
|
"""
|
|
|
|
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'
|
2020-03-20 12:36:50 +00:00
|
|
|
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))
|
2020-03-20 12:36:50 +00:00
|
|
|
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')
|
2020-03-20 12:36:50 +00:00
|
|
|
# ### end Alembic commands ###
|