Skip to content
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

Bring DB in sync with the models.py #1172

Merged
merged 2 commits into from
Sep 28, 2016
Merged

Bring DB in sync with the models.py #1172

merged 2 commits into from
Sep 28, 2016

Conversation

bkyryliuk
Copy link
Member

@bkyryliuk bkyryliuk commented Sep 22, 2016

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
@@ -664,6 +664,7 @@ class SqlaTable(Model, Queryable, AuditMixinNullable):
table_name = Column(String(250))
main_dttm_col = Column(String(250))
description = Column(Text)
default_endpoint = Column(Text)
Copy link
Contributor

@xrmx xrmx Sep 23, 2016

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
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
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 labels Feb 19, 2024
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix the wrong foreign key on columns.column_name
3 participants