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 a7e9c3ec40a2..2726ffba0777 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 @@ -59,11 +59,7 @@ def upgrade_slc(slc: Slice) -> None: # the assumption here is that the query was saved as a dataset # but the type wasn't written properly to the slice # by updating the type here we expect it will either work - # or it will 404 when the dataset is looked up. - # the assumption here is that the query was saved as a dataset - # but the type wasn't written properly to the slice - # by updating the type here we expect it will either work - # or it will 404 when the dataset is looked up. + # or it will 404 when the dataset is looked up. params_dict["datasource"] = f"{ds_id}__table" slc.params = json.dumps(params_dict) logger.warning("updated slice datasource from %s__%s to %s__table", ds_id, ds_type, ds_id)