can schedule/remove playlists from a show instance.

This commit is contained in:
naomiaro 2011-02-05 19:42:03 -05:00
parent 51b6a79f6f
commit 12cd80fe13
4 changed files with 21 additions and 25 deletions

View file

@ -32,7 +32,7 @@ CREATE FUNCTION show_content() RETURNS trigger AS
BEGIN
IF(TG_OP=''DELETE'') THEN
UPDATE cc_show_schedule SET position = (position - 1)
WHERE (show_id = old.show_id AND show_day = old.show_day AND position > old.position);
WHERE (instance_id = old.instance_id AND position > old.position);
END IF;
RETURN NULL;
END;