mirror of
https://github.com/greenart7c3/Amber.git
synced 2026-10-05 19:08:23 +00:00
OnConflictStrategy.IGNORE does not suppress foreign-key failures, so a permission written after its parent application was deleted (e.g. an EditPermission toggle racing an app delete/reset) crashed with SQLITE_CONSTRAINT_FOREIGNKEY. insertPermissions2 now filters out rows whose pkKey has no matching application, and insertPermissions runs its delete+insert in a single transaction. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014UZDNnChDiRzw5PtWc7MhD