feat: remove unused settings DB entries, only uninstall Android on request, bump version to 1.1.1-beta

This commit is contained in:
2025-09-20 21:49:49 -06:00
parent 2dc9b509ce
commit 1ea4608f0d
5 changed files with 20 additions and 13 deletions

View File

@@ -71,10 +71,8 @@ const MIG_004_SQL = `
-- CLEANUP: Remove orphaned settings records and clear legacy activeDid values
-- This completes the migration from settings-based to table-based active identity
-- Use guarded operations to prevent accidental data loss
DELETE FROM settings WHERE accountDid IS NULL AND id != 1;
UPDATE settings SET activeDid = NULL WHERE id = 1 AND EXISTS (
SELECT 1 FROM active_identity WHERE id = 1 AND activeDid IS NOT NULL
);
DELETE FROM settings WHERE accountDid IS NULL;
UPDATE settings SET activeDid = NULL;
`;
// Each migration can include multiple SQL statements (with semicolons)