Allow migration even when data exists.
This commit is contained in:
parent
0cd584880f
commit
f205fffc3c
|
@ -19,7 +19,7 @@ depends_on = None
|
||||||
def upgrade():
|
def upgrade():
|
||||||
# ### commands auto generated by Alembic - please adjust! ###
|
# ### commands auto generated by Alembic - please adjust! ###
|
||||||
op.add_column('file', sa.Column('irb_doc_code', sa.String(), nullable=True))
|
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.add_column('file', sa.Column('is_reference', sa.Boolean(), nullable=False, default=False))
|
||||||
op.alter_column('file', 'primary',
|
op.alter_column('file', 'primary',
|
||||||
existing_type=sa.BOOLEAN(),
|
existing_type=sa.BOOLEAN(),
|
||||||
nullable=False)
|
nullable=False)
|
||||||
|
|
Loading…
Reference in New Issue