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), )