diff --git a/superset/models/dashboard.py b/superset/models/dashboard.py index 77c10b333f..0027edaefd 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, ), )