mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 18:12:29 +08:00
fix(migration): no such table "tasks"
This commit is contained in:
parent
1ca485e4b5
commit
67509bc92f
@ -65,9 +65,16 @@ function load() {
|
||||
new BEtapiToken(row);
|
||||
}
|
||||
|
||||
try {
|
||||
for (const row of sql.getRows<TaskRow>(`SELECT taskId, parentNoteId, title, dueDate, isDone, isDeleted FROM tasks WHERE isDeleted = 0`)) {
|
||||
new BTask(row);
|
||||
}
|
||||
} catch (e: any) {
|
||||
// Some older migrations trigger becca which would fail since the "tasks" table is not yet defined (didn't reach the right migration).
|
||||
if (!(e.message.includes("no such table"))) {
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
for (const noteId in becca.notes) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user