Skip to content

Commit

Permalink
fix: DashboardRoles cascade operation (apache#25349)
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-s-molina authored Sep 20, 2023
1 parent 7aaae06 commit a971a28
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions superset/models/dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,16 +130,14 @@ def copy_dashboard(_mapper: Mapper, connection: Connection, target: Dashboard) -
Column(
"dashboard_id",
Integer,
ForeignKey("dashboards.id"),
ForeignKey("dashboards.id", on_delete="CASCADE"),
nullable=False,
on_delete="CASCADE",
),
Column(
"role_id",
Integer,
ForeignKey("ab_role.id"),
ForeignKey("ab_role.id", on_delete="CASCADE"),
nullable=False,
on_delete="CASCADE",
),
)

Expand Down

0 comments on commit a971a28

Please sign in to comment.