mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 02:16:05 +01:00 
			
		
		
		
	fix(migration): no such table "tasks"
This commit is contained in:
		| @@ -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) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user