fix: DashboardRoles cascade operation (#25349)

This commit is contained in:
Michael S. Molina 2023-09-20 13:08:07 -03:00 committed by GitHub
parent 7aaae06c9d
commit a971a28a34
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 4 deletions

View File

@ -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",
),
)