Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
feat(tasks): add SQL migration
Elian Dorana433c9c18962
diff --git a/db/migrations/0229__tasks.sql b/db/migrations/0229__tasks.sqlnew file mode 100644index 0000000000..4d0381db2f--- /dev/null+++ b/db/migrations/0229__tasks.sql@@ -0,0 +1,10 @@+CREATE TABLE IF NOT EXISTS "tasks"+(+ "taskId" TEXT NOT NULL PRIMARY KEY,+ "parentNoteId" TEXT NOT NULL,+ "title" TEXT NOT NULL DEFAULT "",+ "dueDate" INTEGER,+ "isDone" INTEGER NOT NULL DEFAULT 0,+ "isDeleted" INTEGER NOT NULL DEFAULT 0,+ "utcDateModified" TEXT NOT NULL+);\ No newline at end of filediff --git a/src/services/app_info.ts b/src/services/app_info.tsindex 72b1f0fcad..8af0e6be11 100644--- a/src/services/app_info.ts+++ b/src/services/app_info.ts@@ -5,7 +5,7 @@ import build from "./build.js";import packageJson from "../../package.json" with { type: "json" };import dataDir from "./data_dir.js";-const APP_DB_VERSION = 228;+const APP_DB_VERSION = 229;const SYNC_VERSION = 34;const CLIPPER_PROTOCOL_VERSION = "1.0";