diff options
author | Masaya Tojo <masaya@tojo.tokyo> | 2023-03-12 23:16:42 +0900 |
---|---|---|
committer | Masaya Tojo <masaya@tojo.tokyo> | 2023-03-12 23:38:13 +0900 |
commit | a4a99033f2d3eb7e6d03387fe7e6618604885776 (patch) | |
tree | 1d15217fa34aa96327436d3bb237a2750601ecfb /verify | |
parent | a9c3438a20e7eccfdd31414c2c71092ddda8f705 (diff) |
Add update_timestamp trigger to items table.
Diffstat (limited to 'verify')
-rw-r--r-- | verify/items_update_timestamp.sql | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/verify/items_update_timestamp.sql b/verify/items_update_timestamp.sql new file mode 100644 index 0000000..c7fe432 --- /dev/null +++ b/verify/items_update_timestamp.sql @@ -0,0 +1,14 @@ +-- Verify kakeibo:items_update_timestamp on pg + +BEGIN; + +DO $$ + BEGIN + ASSERT (SELECT 1 from information_schema.triggers + WHERE trigger_schema = 'kakeibo' + AND event_object_table = 'transactions' + AND trigger_name = 'update_timestamp'); + END +$$; + +ROLLBACK; |