You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "sadpandajoe (via GitHub)" <gi...@apache.org> on 2024/09/03 20:45:22 UTC
Re: [PR] fix: pass if table is already removed on upgrade [superset]
sadpandajoe commented on code in PR #30017:
URL: https://github.com/apache/superset/pull/30017#discussion_r1742668917
##########
superset/migrations/versions/2024-08-13_15-17_39549add7bfc_remove_sl_table_columns_table.py:
##########
@@ -26,17 +26,19 @@
from alembic import op
from superset.migrations.shared.constraints import drop_fks_for_table
+from superset.migrations.shared.utils import has_table
# revision identifiers, used by Alembic.
revision = "39549add7bfc"
down_revision = "02f4f7811799"
def upgrade():
- connection = op.get_bind()
- if connection.dialect.name != "sqlite":
- drop_fks_for_table("sl_table_columns")
- op.drop_table("sl_table_columns")
+ table_name = "sl_table_columns"
Review Comment:
done
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org