fp/services/migrations-schema/migrations/00055_trigger_update_vod-sw...

8 lines
228 B
MySQL
Raw Normal View History

2024-09-16 16:31:51 +00:00
DROP TRIGGER trigger_update_vod ON api.segments;
-- switch from `AFTER UPDATE` to `BEFORE UPDATE`
CREATE TRIGGER trigger_update_vod
BEFORE UPDATE ON api.segments
FOR EACH ROW
EXECUTE FUNCTION tg__update_vod_updated_at();