Commit e32bbef6 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

ShowEpisode: Delete episodes of a deleted show

parent ee8b9548
......@@ -167,7 +167,8 @@ bool ShowEpisode::createTable( DBConnection dbConnection )
"show_id UNSIGNED INT,"
"FOREIGN KEY(media_id) REFERENCES " + policy::MediaTable::Name
+ "(id_media) ON DELETE CASCADE,"
"FOREIGN KEY(show_id) REFERENCES " + policy::ShowTable::Name + "(id_show)"
"FOREIGN KEY(show_id) REFERENCES " + policy::ShowTable::Name
+ "(id_show) ON DELETE CASCADE"
")";
return sqlite::Tools::executeRequest( dbConnection, req );
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment