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;