Allow migration even when data exists.

This commit is contained in:
Dan Funk 2020-03-23 13:03:31 -04:00
parent 0cd584880f
commit f205fffc3c
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ depends_on = None
def upgrade():
# ### 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('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',
existing_type=sa.BOOLEAN(),
nullable=False)