Removed playlist item when dashboard is deleted

This commit is contained in:
utkarshcmu
2016-11-06 01:49:43 -08:00
parent bd996a4810
commit c737704eeb
2 changed files with 13 additions and 0 deletions

View File

@@ -233,6 +233,7 @@ func DeleteDashboard(cmd *m.DeleteDashboardCommand) error {
"DELETE FROM dashboard_tag WHERE dashboard_id = ? ",
"DELETE FROM star WHERE dashboard_id = ? ",
"DELETE FROM dashboard WHERE id = ?",
"DELETE FROM playlist_item WHERE type = 'dashboard_by_id' AND value = ?",
}
for _, sql := range deletes {