Skip to content

Bring DB in sync with the models.py#1172

Merged
bkyryliuk merged 2 commits into
apache:masterfrom
bkyryliuk:add_column_foreign_keys
Sep 28, 2016
Merged

Bring DB in sync with the models.py#1172
bkyryliuk merged 2 commits into
apache:masterfrom
bkyryliuk:add_column_foreign_keys

Conversation

@bkyryliuk

@bkyryliuk bkyryliuk commented Sep 22, 2016

Copy link
Copy Markdown
Member

Fixes #466 and cleans up the result of the caravel db migrate.
In addition this change makes client_id unique and updates the tests.

Tested via on MySQL:

caravel db history
caravel db upgrade 
caravel db downgrade eca4694defa7
caravel db upgrade 

SQL Lite doesn't support most of the operations here.

Reviewers:

@bkyryliuk bkyryliuk changed the title Bring DB in sync with the models.py Work in Progress. Bring DB in sync with the models.py Sep 23, 2016
Comment thread caravel/models.py Outdated

@xrmx xrmx Sep 23, 2016

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this intended? I see you are removing it in the other commit, so maybe just don't add it here?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't intend to delete it.

@bkyryliuk bkyryliuk changed the title Work in Progress. Bring DB in sync with the models.py Bring DB in sync with the models.py Sep 23, 2016
@mistercrunch

Copy link
Copy Markdown
Member

LGTM

@bkyryliuk bkyryliuk merged commit 9c83b90 into apache:master Sep 28, 2016
@bkyryliuk bkyryliuk deleted the add_column_foreign_keys branch September 28, 2016 20:55
zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this pull request Nov 17, 2021
zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this pull request Nov 24, 2021
zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this pull request Nov 25, 2021
zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this pull request Nov 26, 2021
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.11.0 First shipped in 0.11.0 labels Feb 19, 2024
qfcwell pushed a commit to qfcwell/superset that referenced this pull request May 12, 2026
* Bring DB in sync with the models.py

* Make sure that migrations run on multiple dbs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.11.0 First shipped in 0.11.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix the wrong foreign key on columns.column_name

3 participants