diff options
Diffstat (limited to 'deploy/transactions_update_timestamp.sql')
-rw-r--r-- | deploy/transactions_update_timestamp.sql | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/deploy/transactions_update_timestamp.sql b/deploy/transactions_update_timestamp.sql new file mode 100644 index 0000000..e893986 --- /dev/null +++ b/deploy/transactions_update_timestamp.sql @@ -0,0 +1,15 @@ +-- Deploy photos:transactions_update_timestamp to pg +-- requires: schema +-- requires: transactions +-- requires: update_timestamp + +BEGIN; + +SET search_path to photos; + +CREATE OR REPLACE TRIGGER update_timestamp + BEFORE UPDATE ON transactions + FOR EACH ROW + EXECUTE FUNCTION update_timestamp(); + +COMMIT; |