chore(dao): Add explicit ON DELETE CASCADE for ownership (#24628)

This commit is contained in:
John Bodley
2023-07-11 11:39:03 -07:00
committed by Michael S. Molina
parent 71eff954ba
commit 96cf6406f1
19 changed files with 199 additions and 119 deletions

View File

@@ -537,7 +537,6 @@ def create_dashboard(slices: list[Slice]) -> Dashboard:
dash = db.session.query(Dashboard).filter_by(slug="births").first()
if not dash:
dash = Dashboard()
dash.owners = []
db.session.add(dash)
dash.published = True