mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +00:00
chore: Add explicit ON DELETE CASCADE for embedded_dashboards (#24939)
Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com>
This commit is contained in:
@@ -40,7 +40,11 @@ class EmbeddedDashboard(Model, AuditMixinNullable):
|
||||
|
||||
uuid = Column(UUIDType(binary=True), default=uuid.uuid4, primary_key=True)
|
||||
allow_domain_list = Column(Text) # reference the `allowed_domains` property instead
|
||||
dashboard_id = Column(Integer, ForeignKey("dashboards.id"), nullable=False)
|
||||
dashboard_id = Column(
|
||||
Integer,
|
||||
ForeignKey("dashboards.id", ondelete="CASCADE"),
|
||||
nullable=False,
|
||||
)
|
||||
dashboard = relationship(
|
||||
"Dashboard",
|
||||
back_populates="embedded",
|
||||
|
||||
Reference in New Issue
Block a user