Commit 2e0ed26
fix(sqlite): keep perms UNIQUE narrow under shared tables
A composite (_document, _type, _permission, _tenant) constraint
matches MariaDB's shape but trips the upsert path that re-inserts
permissions without re-reading the existing rows. Revert to the
existing (_document, _type, _permission) constraint until the
shared-tables permission diff is sorted.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent e7416c2 commit 2e0ed26
1 file changed
Lines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
219 | 219 | | |
220 | 220 | | |
221 | 221 | | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
226 | 228 | | |
227 | 229 | | |
228 | 230 | | |
| |||
0 commit comments