mirror of
https://github.com/apache/superset.git
synced 2026-04-20 16:44:46 +00:00
chore: Add explicit ON DELETE CASCADE for dashboard_slices (#24938)
This commit is contained in:
@@ -105,8 +105,8 @@ dashboard_slices = Table(
|
||||
"dashboard_slices",
|
||||
metadata,
|
||||
Column("id", Integer, primary_key=True),
|
||||
Column("dashboard_id", Integer, ForeignKey("dashboards.id")),
|
||||
Column("slice_id", Integer, ForeignKey("slices.id")),
|
||||
Column("dashboard_id", Integer, ForeignKey("dashboards.id", ondelete="CASCADE")),
|
||||
Column("slice_id", Integer, ForeignKey("slices.id", ondelete="CASCADE")),
|
||||
UniqueConstraint("dashboard_id", "slice_id"),
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user