From cf595e6a891923e6244dc67fdd9870d2292bbc14 Mon Sep 17 00:00:00 2001 From: Daniel Gaspar Date: Wed, 17 Apr 2024 16:02:49 +0100 Subject: [PATCH] fix: db migrations on downgrade --- ...22-44_c22cb5c2e546_user_attr_avatar_url.py | 2 +- ...43_5ad7321c2169_mig_new_csv_upload_perm.py | 2 +- .../2024-04-11_00-49_bbf146925528_.py | 38 ------------------- .../2024-04-15_16-06_0dc386701747_.py | 38 ------------------- 4 files changed, 2 insertions(+), 78 deletions(-) delete mode 100644 superset/migrations/versions/2024-04-11_00-49_bbf146925528_.py delete mode 100644 superset/migrations/versions/2024-04-15_16-06_0dc386701747_.py diff --git a/superset/migrations/versions/2024-04-01_22-44_c22cb5c2e546_user_attr_avatar_url.py b/superset/migrations/versions/2024-04-01_22-44_c22cb5c2e546_user_attr_avatar_url.py index 0a5430c684edb..f52c8c582d4c6 100644 --- a/superset/migrations/versions/2024-04-01_22-44_c22cb5c2e546_user_attr_avatar_url.py +++ b/superset/migrations/versions/2024-04-01_22-44_c22cb5c2e546_user_attr_avatar_url.py @@ -26,7 +26,7 @@ # revision identifiers, used by Alembic. revision = "c22cb5c2e546" -down_revision = "be1b217cd8cd" +down_revision = "678eefb4ab44" def upgrade(): diff --git a/superset/migrations/versions/2024-04-08_15-43_5ad7321c2169_mig_new_csv_upload_perm.py b/superset/migrations/versions/2024-04-08_15-43_5ad7321c2169_mig_new_csv_upload_perm.py index c4ebe4ac7045f..04bd4f625b59c 100644 --- a/superset/migrations/versions/2024-04-08_15-43_5ad7321c2169_mig_new_csv_upload_perm.py +++ b/superset/migrations/versions/2024-04-08_15-43_5ad7321c2169_mig_new_csv_upload_perm.py @@ -24,7 +24,7 @@ # revision identifiers, used by Alembic. revision = "5ad7321c2169" -down_revision = "678eefb4ab44" +down_revision = "c22cb5c2e546" from alembic import op from sqlalchemy.exc import SQLAlchemyError diff --git a/superset/migrations/versions/2024-04-11_00-49_bbf146925528_.py b/superset/migrations/versions/2024-04-11_00-49_bbf146925528_.py deleted file mode 100644 index c9161c863c5ca..0000000000000 --- a/superset/migrations/versions/2024-04-11_00-49_bbf146925528_.py +++ /dev/null @@ -1,38 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -"""empty message - -Revision ID: bbf146925528 -Revises: ('678eefb4ab44', 'c22cb5c2e546') -Create Date: 2024-04-11 00:49:51.592325 - -""" - -# revision identifiers, used by Alembic. -revision = "bbf146925528" -down_revision = ("678eefb4ab44", "c22cb5c2e546") - -import sqlalchemy as sa -from alembic import op - - -def upgrade(): - pass - - -def downgrade(): - pass diff --git a/superset/migrations/versions/2024-04-15_16-06_0dc386701747_.py b/superset/migrations/versions/2024-04-15_16-06_0dc386701747_.py deleted file mode 100644 index d8087a41c036f..0000000000000 --- a/superset/migrations/versions/2024-04-15_16-06_0dc386701747_.py +++ /dev/null @@ -1,38 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. -"""empty message - -Revision ID: 0dc386701747 -Revises: ('5ad7321c2169', 'bbf146925528') -Create Date: 2024-04-15 16:06:29.946059 - -""" - -# revision identifiers, used by Alembic. -revision = "0dc386701747" -down_revision = ("5ad7321c2169", "bbf146925528") - -import sqlalchemy as sa -from alembic import op - - -def upgrade(): - pass - - -def downgrade(): - pass