From 5e5c4b35c6112951f4c91e86a14073db6472a07a Mon Sep 17 00:00:00 2001 From: Anton Reshetov Date: Fri, 4 Jul 2025 06:26:24 +0300 Subject: [PATCH] fix(db): if folder index is missing, set to 0 during migration --- src/main/db/migrate.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/db/migrate.ts b/src/main/db/migrate.ts index 91a595c1..89820216 100644 --- a/src/main/db/migrate.ts +++ b/src/main/db/migrate.ts @@ -55,7 +55,7 @@ export function migrateJsonToSqlite(jsonData: JSONDB) { folder.createdAt, folder.updatedAt, folder.icon || null, - folder.index, + folder.index ?? 0, ) folderIdMap[folder.id] = Number(result.lastInsertRowid) })