fix(migration): preserve and recover legacy desktop sources (#1550)

* fix(migration): recover legacy desktop sources without replacing current data

* test(migration): cover legacy recovery IPC contracts

* test(migration): use static legacy Electron bootstrap
This commit is contained in:
4gray authored and GitHub committed 2026-09-06 00:45:35 +02:00
1 parent 002faafbd7
commit 9bcdbc0efb
26 files changed
+1505 -38

No files matched your search

@@ -1,3 +1,4 @@
import { migrateAppPlaylists } from '../database/operations/playlist-migration.operations';
import {
closeWorkerDatabase,
getWorkerDatabase,
@@ -679,6 +680,14 @@ async function executeRequest(
);
}
case 'DB_MIGRATE_APP_PLAYLISTS': {
const payload = message.payload as {
playlists: Record<string, unknown>[];
key?: string;
};
return migrateAppPlaylists(db, payload.playlists, payload.key);
}
case 'DB_UPSERT_APP_PLAYLISTS': {
return upsertAppPlaylists(
db,