Fixing bug

This commit is contained in:
Emil
2026-02-21 17:14:08 +01:00
parent 43172751e9
commit fa5e14de83
20 changed files with 309 additions and 39 deletions
@@ -0,0 +1,19 @@
-- Migration 034: Fix extension_data updated_at trigger
-- The original trigger references update_updated_at() which does not exist.
-- The correct function is public.update_updated_at_column().
-- Wrapped in DO block in case extension_data table does not yet exist.
do $$
begin
if exists (
select 1 from information_schema.tables
where table_schema = 'public' and table_name = 'extension_data'
) then
drop trigger if exists extension_data_updated_at on public.extension_data;
create trigger extension_data_updated_at
before update on public.extension_data
for each row execute function public.update_updated_at_column();
end if;
end;
$$;