Commit 3713317
committed
fix: delete expired rules before insert to avoid UNIQUE constraint error
Expired rules with the same (container, destination, port, action) key
were blocking new rule creation because findExistingRule skips expired
rows but the UNIQUE constraint still enforces against them.1 parent 26d2792 commit 3713317
1 file changed
+8
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
60 | 68 | | |
61 | 69 | | |
62 | 70 | | |
| |||
0 commit comments