Commit d902a82
committed
fix(db): paren-insensitive constraint-drift comparison
pg_get_constraintdef's AND-chain grouping changed between Postgres minors:
17.4 prints left-associated parentheses, 17.6 flattens the chain. The pinned
definitions came from the 17.4 production dump, so the drift check false-fired
on a fresh 17.6 project (and would fire on production after its next minor
upgrade). Comparing both sides with parentheses stripped keeps the check's
purpose — operator, literal, and regex changes still surface.1 parent 7bd5524 commit d902a82
1 file changed
Lines changed: 13 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
184 | | - | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
185 | 193 | | |
186 | 194 | | |
187 | 195 | | |
| |||
261 | 269 | | |
262 | 270 | | |
263 | 271 | | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
0 commit comments