Commit 8618f59
fix: clean up leaked cluster-level roles in TestIgnorePrivileges (#346)
* feat: add support for trigger UPDATE OF columns (#342)
Triggers with column-specific UPDATE events (e.g., UPDATE OF email) were
losing the column specification during inspection, causing incorrect
migration plans that would fire triggers on all updates instead of only
on specified column changes.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix: guard UPDATE OF column extraction with tgtype bitmask check
Only extract UPDATE OF columns when the trigger actually has an UPDATE
event, preventing false positives if the substring appears elsewhere.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix: clean up leaked cluster-level roles in TestIgnorePrivileges
TestIgnorePrivileges creates cluster-level PostgreSQL roles (app_reader,
deploy_bot, admin_role) and ALTER DEFAULT PRIVILEGES rules in the shared
embedded PG instance. Since Go runs tests alphabetically, these persist
and contaminate TestPlanAndApply, causing unexpected GRANT statements in
plan output for all table/view/index tests.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent 5a900ec commit 8618f59
1 file changed
Lines changed: 34 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1130 | 1130 | | |
1131 | 1131 | | |
1132 | 1132 | | |
| 1133 | + | |
| 1134 | + | |
| 1135 | + | |
| 1136 | + | |
| 1137 | + | |
| 1138 | + | |
| 1139 | + | |
| 1140 | + | |
| 1141 | + | |
| 1142 | + | |
| 1143 | + | |
| 1144 | + | |
| 1145 | + | |
| 1146 | + | |
| 1147 | + | |
| 1148 | + | |
| 1149 | + | |
| 1150 | + | |
| 1151 | + | |
| 1152 | + | |
| 1153 | + | |
| 1154 | + | |
| 1155 | + | |
| 1156 | + | |
| 1157 | + | |
| 1158 | + | |
| 1159 | + | |
| 1160 | + | |
| 1161 | + | |
| 1162 | + | |
| 1163 | + | |
| 1164 | + | |
| 1165 | + | |
| 1166 | + | |
1133 | 1167 | | |
1134 | 1168 | | |
1135 | 1169 | | |
| |||
0 commit comments