aboutsummaryrefslogtreecommitdiff
path: root/deploy/update_updated_at.sql
diff options
context:
space:
mode:
Diffstat (limited to 'deploy/update_updated_at.sql')
-rw-r--r--deploy/update_updated_at.sql15
1 files changed, 0 insertions, 15 deletions
diff --git a/deploy/update_updated_at.sql b/deploy/update_updated_at.sql
deleted file mode 100644
index a41d27f..0000000
--- a/deploy/update_updated_at.sql
+++ /dev/null
@@ -1,15 +0,0 @@
--- Deploy diary:update_updated_at to pg
--- requires: schema
-
-BEGIN;
-
-SET search_path to diary;
-
-CREATE OR REPLACE FUNCTION update_updated_at() RETURNS TRIGGER AS $$
- BEGIN
- NEW.updated_at = NOW();
- RETURN NEW;
- END;
-$$ LANGUAGE plpgsql;
-
-COMMIT;