fp/services/migrations-schema/migrations/00074_switch-after-update-t...

8 lines
235 B
SQL

-- fixing a mistake. I accidentally did AFTER UPDATE when I wanted AFTER INSERT.
DROP TRIGGER create_build ON api.builds;
CREATE TRIGGER create_build
AFTER INSERT ON api.builds
FOR EACH ROW
EXECUTE FUNCTION tg__add_build_job();