From f205fffc3cb1a67cf0263faebd25e7465bf89af8 Mon Sep 17 00:00:00 2001 From: Dan Funk Date: Mon, 23 Mar 2020 13:03:31 -0400 Subject: [PATCH] Allow migration even when data exists. --- migrations/versions/ddd5fc9ea75b_.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/migrations/versions/ddd5fc9ea75b_.py b/migrations/versions/ddd5fc9ea75b_.py index ad5a42d8..c6c90372 100644 --- a/migrations/versions/ddd5fc9ea75b_.py +++ b/migrations/versions/ddd5fc9ea75b_.py @@ -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)