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
fix schema.sql
azivner9910aebf4593
diff --git a/README.md b/README.mdindex 98d450f410..1ed07e697a 100644--- a/README.md+++ b/README.md@@ -10,6 +10,7 @@ Trilium Notes is a hierarchical note taking application. Picture tells a thousan* WYSIWYG (What You See Is What You Get) editing* Fast and easy [navigation between notes](https://github.com/zadam/trilium/wiki/Note-navigation)* Seamless note versioning+* Note attributes can be used to tag/label notes as an alternative note organization and querying* Can be deployed as web application and / or desktop application with offline access (electron based)* [Synchronization with](https://github.com/zadam/trilium/wiki/Synchronization) self-hosted sync server* Strong [note encryption](https://github.com/zadam/trilium/wiki/Protected-notes)@@ -34,6 +35,7 @@ List of documentation pages:* [Installation as webapp](https://github.com/zadam/trilium/wiki/Installation-as-webapp)* [Note navigation](https://github.com/zadam/trilium/wiki/Note-navigation)* [Tree manipulation](https://github.com/zadam/trilium/wiki/Tree-manipulation)+* [Attributes](https://github.com/zadam/trilium/wiki/Attributes)* [Links](https://github.com/zadam/trilium/wiki/Links)* [Cloning notes](https://github.com/zadam/trilium/wiki/Cloning-notes)* [Protected notes](https://github.com/zadam/trilium/wiki/Protected-notes)diff --git a/db/schema.sql b/db/schema.sqlindex 891667c3ca..58d07f99bc 100644--- a/db/schema.sql+++ b/db/schema.sql@@ -85,6 +85,7 @@ CREATE TABLE IF NOT EXISTS "attributes"noteId TEXT NOT NULL,name TEXT NOT NULL,value TEXT,+ position INT NOT NULL DEFAULT 0,dateCreated TEXT NOT NULL,dateModified TEXT NOT NULL,isDeleted INT NOT NULLdiff --git a/src/services/attributes.js b/src/services/attributes.jsindex 1581eabe00..eb256599a1 100644--- a/src/services/attributes.js+++ b/src/services/attributes.js@@ -5,7 +5,7 @@ const utils = require('./utils');const sync_table = require('./sync_table');const Repository = require('./repository');-const BUILTIN_ATTRIBUTES = [ 'run_on_startup', 'disable_versioning' ];+const BUILTIN_ATTRIBUTES = [ 'run_on_startup', 'disable_versioning', 'calendar_root' ];async function getNoteAttributeMap(noteId) {return await sql.getMap(`SELECT name, value FROM attributes WHERE noteId = ?`, [noteId]);