-
Notifications
You must be signed in to change notification settings - Fork 14.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: remove old constraint #29649
base: master
Are you sure you want to change the base?
fix: remove old constraint #29649
Conversation
63ca30b
to
a0fe8af
Compare
a0fe8af
to
9335d7a
Compare
superset/migrations/versions/2024-07-19_16-11_df3d7e2eb9a4_remove__customer_location_uc.py
Outdated
Show resolved
Hide resolved
Hey, thinking about applying some of the ideas in #29546, which would point towards either accumulating this PR and holding it until next release, or merging this in to a no-op place that we would bring into an actual migration later. Curious as to whether you all think it's better to hold the PR, or to merge into a temporary place. |
Easiest option here seems like it'd be to add a |
9335d7a
to
286a784
Compare
286a784
to
93d2e55
Compare
Tagged this for 5.0. |
SUMMARY
The dataset model has a comment that says:
superset/superset/connectors/sqla/models.py
Lines 1135 to 1144 in 9487d6c
But turns out there is an old migration from 2016 that adds the uniqueness constraint to the schema:
superset/superset/migrations/versions/2016-04-15_08-31_b4456560d4f3_change_table_unique_constraint.py
Lines 36 to 38 in 9487d6c
With the introduction of catalogs in SIP-95 this constraint needs to either be updated to include
catalog
, or removed to align with theSqlaTable
model. In this PR I went with the latter.BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION