willbarrett commented on a change in pull request #8737: Migration and model 
changes to synchronize the data model
URL: 
https://github.com/apache/incubator-superset/pull/8737#discussion_r356277274
 
 

 ##########
 File path: superset/connectors/sqla/models.py
 ##########
 @@ -347,7 +347,7 @@ class SqlaTable(Model, BaseDatasource):
     owner_class = security_manager.user_model
 
     __tablename__ = "tables"
-    __table_args__ = (UniqueConstraint("database_id", "table_name"),)
+    __table_args__ = (UniqueConstraint("database_id", "schema", "table_name", 
name="_customer_location_uc"),)
 
 Review comment:
   I connected with Max - it appears there's a bug in the migration that 
results in the old constraint not being dropped in some circumstances. I'm 
looking into that. The intention here isn't to alter the existing constraint on 
this table. Will update.

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to