Commit aef12cf
fix(ci): exclude adding-foreign-key-constraint squawk rule
Drizzle's migrator runs all statements in a single transaction, making
the two-step NOT VALID / VALIDATE pattern (squawk's recommended fix for
adding-foreign-key-constraint) impossible.
Excluded the rule with the same justification as the existing exclusions
for require-concurrent-index-creation and constraint-missing-not-valid.
agent_sessions is a small table (~hundreds of rows) so the brief
SHARE ROW EXCLUSIVE lock during migration is acceptable.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 89a36e8 commit aef12cf
File tree
2 files changed
+12
-5
lines changed- apps/wiki-server/drizzle
2 files changed
+12
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| |||
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| 42 | + | |
41 | 43 | | |
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
12 | 17 | | |
13 | 18 | | |
14 | 19 | | |
| |||
0 commit comments