Skip to content

Commit 43b49df

Browse files
committed
Improve
1 parent dca47b7 commit 43b49df

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

etl/migrations/20251127090000_schema_change_messages.sql

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,9 @@ begin
8585
for cmd in
8686
select * from pg_event_trigger_ddl_commands()
8787
loop
88-
if cmd.object_type not in ('table', 'column') then
88+
-- 'table' covers most ALTER TABLE operations (ADD/DROP COLUMN, ALTER TYPE, etc.)
89+
-- 'table column' is returned specifically for RENAME COLUMN operations
90+
if cmd.object_type not in ('table', 'table column') then
8991
continue;
9092
end if;
9193

0 commit comments

Comments
 (0)