summaryrefslogtreecommitdiff
path: root/deploy/photos_update_timestamp.sql
blob: 366d3c214e66d4969faa497de95ab0ec6db36ccb (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
-- Deploy photos:photos_update_timestamp to pg
-- requires: schema
-- requires: photos
-- requires: update_timestamp

BEGIN;

SET search_path to photos;

CREATE OR REPLACE TRIGGER update_timestamp
  BEFORE UPDATE ON photos
  FOR EACH ROW
  EXECUTE FUNCTION update_timestamp();

COMMIT;