diff options
Diffstat (limited to 'deploy')
| -rw-r--r-- | deploy/photos_update_timestamp.sql | 15 | 
1 files changed, 15 insertions, 0 deletions
diff --git a/deploy/photos_update_timestamp.sql b/deploy/photos_update_timestamp.sql new file mode 100644 index 0000000..366d3c2 --- /dev/null +++ b/deploy/photos_update_timestamp.sql @@ -0,0 +1,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;  | 
