aboutsummaryrefslogtreecommitdiff
path: root/revert/articles_update_timestamp.sql
blob: 56e4503c5dd7ef335fc18376c57bce30056357a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
-- Deploy kakeibo:articles_update_timestamp to pg
-- requires: articles
-- requires: update_timestamp

BEGIN;

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

COMMIT;