MyVideos48 |
Trigger "delete_season" |
System: | |
Table: | seasons |
Events: | DELETE |
Type: | After |
Enabled: | |
When expression: | (no value) |
Body: |
CREATE TRIGGER delete_season
AFTER DELETE
ON seasons
BEGIN
DELETE FROM art WHERE media_id=old.idSeason AND media_type='season';
DELETE FROM episode WHERE Season=old.Season AND idShow=old.idShow;
DELETE FROM uniqueid WHERE media_id=old.idSeason AND media_type='season';
END;
Generated by ""SQLite Maestro Professional"" at 08.07.2021 23:49:20 |