Commit 4e807df
fix(migrations): Skip pg_dumpall restrict/unrestrict tokens in drift check
PostgreSQL 16+ emits \restrict and \unrestrict directives with random
per-session tokens in pg_dumpall output. These tokens differ between
any two dumps and are unrelated to the database schema, causing the
migration drift detection to always report false positives.
Filter out these lines in the norm() function alongside the existing
filters for comments and django_migrations tables.
Co-Authored-By: Claude Opus 4 <noreply@anthropic.com>1 parent db8e93c commit 4e807df
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
42 | 46 | | |
43 | 47 | | |
44 | 48 | | |
| |||
0 commit comments