|
@ -79,8 +79,8 @@ const MIG_004_SQL = ` |
|
|
warnIfTestServer = (SELECT warnIfTestServer FROM settings WHERE id = 1); |
|
|
warnIfTestServer = (SELECT warnIfTestServer FROM settings WHERE id = 1); |
|
|
|
|
|
|
|
|
-- CLEANUP: Remove orphaned settings records and clear legacy activeDid values |
|
|
-- CLEANUP: Remove orphaned settings records and clear legacy activeDid values |
|
|
|
|
|
-- which usually simply clears out the MASTER_SETTINGS_KEY record. |
|
|
-- This completes the migration from settings-based to table-based active identity |
|
|
-- 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; |
|
|
DELETE FROM settings WHERE accountDid IS NULL; |
|
|
UPDATE settings SET activeDid = NULL; |
|
|
UPDATE settings SET activeDid = NULL; |
|
|
`;
|
|
|
`;
|
|
|