From 6d123d91bb9c56a667fbbe81cbae0f3dae8430f2 Mon Sep 17 00:00:00 2001 From: Michael Gaffney Date: Fri, 29 May 2020 14:51:22 -0400 Subject: [PATCH] Fix comment for trigger (#92) --- internal/db/migrations/postgres.gen.go | 4 ++-- internal/db/migrations/postgres/01_domain_types.up.sql | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/db/migrations/postgres.gen.go b/internal/db/migrations/postgres.gen.go index b04ec7855f..e5849d4511 100644 --- a/internal/db/migrations/postgres.gen.go +++ b/internal/db/migrations/postgres.gen.go @@ -88,9 +88,9 @@ end; $$ language plpgsql; comment on function - immutable_create_time_func() + default_create_time() is - 'function used in before update triggers to make create_time column immutable'; + 'function used in before insert triggers to set create_time column to now'; commit; diff --git a/internal/db/migrations/postgres/01_domain_types.up.sql b/internal/db/migrations/postgres/01_domain_types.up.sql index 634213ba95..02f184e9b3 100644 --- a/internal/db/migrations/postgres/01_domain_types.up.sql +++ b/internal/db/migrations/postgres/01_domain_types.up.sql @@ -65,8 +65,8 @@ end; $$ language plpgsql; comment on function - immutable_create_time_func() + default_create_time() is - 'function used in before update triggers to make create_time column immutable'; + 'function used in before insert triggers to set create_time column to now'; commit;