From 9eec9ad3556636b71986440f5ad6f8ac9fdb6558 Mon Sep 17 00:00:00 2001 From: xbgmsharp Date: Tue, 29 Nov 2022 10:39:26 +0100 Subject: [PATCH] Add description to accounts and vessels triggers with moddatetime --- initdb/02_4_signalk_auth.sql | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/initdb/02_4_signalk_auth.sql b/initdb/02_4_signalk_auth.sql index 45b3b0b..64391f3 100644 --- a/initdb/02_4_signalk_auth.sql +++ b/initdb/02_4_signalk_auth.sql @@ -47,6 +47,10 @@ CREATE TRIGGER accounts_moddatetime BEFORE UPDATE ON auth.accounts FOR EACH ROW EXECUTE PROCEDURE moddatetime (updated_at); +-- Description +COMMENT ON TRIGGER accounts_moddatetime + ON auth.accounts + IS 'Automatic update of updated_at on table modification'; DROP TABLE IF EXISTS auth.vessels; CREATE TABLE IF NOT EXISTS auth.vessels ( @@ -75,6 +79,10 @@ CREATE TRIGGER vessels_moddatetime BEFORE UPDATE ON auth.vessels FOR EACH ROW EXECUTE PROCEDURE moddatetime (updated_at); +-- Description +COMMENT ON TRIGGER vessels_moddatetime + ON auth.vessels + IS 'Automatic update of updated_at on table modification'; create or replace function auth.check_role_exists() returns trigger as $$