You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2019/12/11 15:22:39 UTC

[GitHub] [incubator-superset] blcksrx commented on issue #8808: superset db upgrade returns foreign key constraint is incorrectly formed

blcksrx commented on issue #8808: superset db upgrade returns foreign key constraint is incorrectly formed
URL: https://github.com/apache/incubator-superset/issues/8808#issuecomment-564593881
 
 
   it's because of this foreign key om the `tab_state`:
   ```
   FOREIGN KEY(latest_query_id) REFERENCES query (client_id)
   ```
   The `client_id ` is not a `primary_key` on the `query` table and it should be referenced to `query (id)`

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org