From a84bde93311ac0fda47f35ed7e5fda0dbe7c44ca Mon Sep 17 00:00:00 2001 From: hughhhh Date: Thu, 6 Apr 2023 11:28:02 -0400 Subject: [PATCH] update table name --- .../2023-03-27_12-30_7e67aecbf3f1_chart_ds_constraint.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/superset/migrations/versions/2023-03-27_12-30_7e67aecbf3f1_chart_ds_constraint.py b/superset/migrations/versions/2023-03-27_12-30_7e67aecbf3f1_chart_ds_constraint.py index 3bcb0c3822225..ae3943603b17a 100644 --- a/superset/migrations/versions/2023-03-27_12-30_7e67aecbf3f1_chart_ds_constraint.py +++ b/superset/migrations/versions/2023-03-27_12-30_7e67aecbf3f1_chart_ds_constraint.py @@ -24,9 +24,7 @@ # revision identifiers, used by Alembic. revision = "7e67aecbf3f1" -down_revision = "b5ea9d343307" - -import json +down_revision = "07f9a902af1b" import sqlalchemy as sa from alembic import op @@ -54,7 +52,7 @@ def upgrade(): slc.datasource_type = "table" op.create_check_constraint( - "ck_chart_datasource", "slice", sa.column("datasource_type") == "table" + "ck_chart_datasource", "slices", sa.column("datasource_type") == "table" )