This is an automated email from the ASF dual-hosted git repository.
johnbodley pushed a commit to branch 3.0
in repository https://gitbox.apache.org/repos/asf/superset.git
The following commit(s) were added to refs/heads/3.0 by this push:
new eacdbdd877 fix: Rename on_delete parameter to ondelete (#25424)
eacdbdd877 is described below
commit eacdbdd8778dd9c325950459086e73292c693014
Author: John Bodley <[email protected]>
AuthorDate: Tue Sep 26 16:00:37 2023 -0700
fix: Rename on_delete parameter to ondelete (#25424)
(cherry picked from commit 893b45feef306cb59409702bfd39cfcf3589f6ef)
---
superset/models/dashboard.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/superset/models/dashboard.py b/superset/models/dashboard.py
index c7bf15fa04..789045542f 100644
--- a/superset/models/dashboard.py
+++ b/superset/models/dashboard.py
@@ -130,13 +130,13 @@ DashboardRoles = Table(
Column(
"dashboard_id",
Integer,
- ForeignKey("dashboards.id", on_delete="CASCADE"),
+ ForeignKey("dashboards.id", ondelete="CASCADE"),
nullable=False,
),
Column(
"role_id",
Integer,
- ForeignKey("ab_role.id", on_delete="CASCADE"),
+ ForeignKey("ab_role.id", ondelete="CASCADE"),
nullable=False,
),
)