From 518e7adc891440ce88caff2200e267b2800fdaff Mon Sep 17 00:00:00 2001 From: Shiva Raisinghani Date: Thu, 28 Oct 2021 15:19:03 -0700 Subject: [PATCH] fix db migration for MySQL 8 --- .../migrations/versions/b92d69a6643c_rename_csv_to_file.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/superset/migrations/versions/b92d69a6643c_rename_csv_to_file.py b/superset/migrations/versions/b92d69a6643c_rename_csv_to_file.py index dc02103337c05..2c4b0b8f8de4b 100644 --- a/superset/migrations/versions/b92d69a6643c_rename_csv_to_file.py +++ b/superset/migrations/versions/b92d69a6643c_rename_csv_to_file.py @@ -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), ) @@ -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), )