Skip to content

Commit

Permalink
fix db migration for MySQL 8
Browse files Browse the repository at this point in the history
  • Loading branch information
exemplary-citizen authored Oct 28, 2021
1 parent ce558e0 commit 518e7ad
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def upgrade():
batch_op.alter_column(
"allow_csv_upload",
new_column_name="allow_file_upload",
existing_type=sa.Boolean(),
existing_type=sa.Boolean(create_constraint=False),
)


Expand All @@ -44,5 +44,5 @@ def downgrade():
batch_op.alter_column(
"allow_file_upload",
new_column_name="allow_csv_upload",
existing_type=sa.Boolean(),
existing_type=sa.Boolean(create_constraint=False),
)

0 comments on commit 518e7ad

Please sign in to comment.