This is an automated email from the ASF dual-hosted git repository.

michaelsmolina pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git


The following commit(s) were added to refs/heads/master by this push:
     new a971a28a34 fix: DashboardRoles cascade operation (#25349)
a971a28a34 is described below

commit a971a28a3450b28151bbad3632ce2364c87df3fc
Author: Michael S. Molina <[email protected]>
AuthorDate: Wed Sep 20 13:08:07 2023 -0300

    fix: DashboardRoles cascade operation (#25349)
---
 superset/models/dashboard.py | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/superset/models/dashboard.py b/superset/models/dashboard.py
index c4e6f45c52..77c10b333f 100644
--- a/superset/models/dashboard.py
+++ b/superset/models/dashboard.py
@@ -130,16 +130,14 @@ DashboardRoles = Table(
     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",
     ),
 )
 

Reply via email to