aboutsummaryrefslogtreecommitdiff
path: root/verify
diff options
context:
space:
mode:
authorMasaya Tojo <masaya@tojo.tokyo>2024-03-10 20:31:56 +0900
committerMasaya Tojo <masaya@tojo.tokyo>2024-03-10 20:31:56 +0900
commit516117207bbb3cca9723651b73941a2d1a5dca53 (patch)
tree14f77a11b8bd536f2e1e4814d499ce715264b9ef /verify
parentf1ffe938b95a274c550b67674fbd7a10fcaeee9a (diff)
Add function to update `updated_at` column.
Diffstat (limited to 'verify')
-rw-r--r--verify/update_updated_at.sql9
1 files changed, 9 insertions, 0 deletions
diff --git a/verify/update_updated_at.sql b/verify/update_updated_at.sql
new file mode 100644
index 0000000..59c71be
--- /dev/null
+++ b/verify/update_updated_at.sql
@@ -0,0 +1,9 @@
+-- Verify diary:update_updated_at on pg
+
+BEGIN;
+
+SET search_path to diary;
+
+SELECT has_function_privilege('update_updated_at()', 'EXECUTE');
+
+ROLLBACK;