You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(sqlite): match ON CONFLICT column order to the actual UNIQUE index
getSQLIndex automatically prepends \`_tenant\` to every index under
shared tables, so the resulting UNIQUE constraint on the documents
table is (_tenant, _uid) rather than (_uid, _tenant). SQLite's ON
CONFLICT clause requires the same column order — the upsert path now
emits (_tenant, _uid) under shared tables and the underlying UNIQUE
matches. Also drop the redundant `composite UNIQUE` createCollection
edit since the auto-prepend already covers it for both the documents
and permissions tables.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments