mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
fix schema.sql
This commit is contained in:
parent
f9f8ecb2b1
commit
9910aebf45
@ -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
|
* WYSIWYG (What You See Is What You Get) editing
|
||||||
* Fast and easy [navigation between notes](https://github.com/zadam/trilium/wiki/Note-navigation)
|
* Fast and easy [navigation between notes](https://github.com/zadam/trilium/wiki/Note-navigation)
|
||||||
* Seamless note versioning
|
* 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)
|
* 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
|
* [Synchronization with](https://github.com/zadam/trilium/wiki/Synchronization) self-hosted sync server
|
||||||
* Strong [note encryption](https://github.com/zadam/trilium/wiki/Protected-notes)
|
* 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)
|
* [Installation as webapp](https://github.com/zadam/trilium/wiki/Installation-as-webapp)
|
||||||
* [Note navigation](https://github.com/zadam/trilium/wiki/Note-navigation)
|
* [Note navigation](https://github.com/zadam/trilium/wiki/Note-navigation)
|
||||||
* [Tree manipulation](https://github.com/zadam/trilium/wiki/Tree-manipulation)
|
* [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)
|
* [Links](https://github.com/zadam/trilium/wiki/Links)
|
||||||
* [Cloning notes](https://github.com/zadam/trilium/wiki/Cloning-notes)
|
* [Cloning notes](https://github.com/zadam/trilium/wiki/Cloning-notes)
|
||||||
* [Protected notes](https://github.com/zadam/trilium/wiki/Protected-notes)
|
* [Protected notes](https://github.com/zadam/trilium/wiki/Protected-notes)
|
||||||
|
@ -85,6 +85,7 @@ CREATE TABLE IF NOT EXISTS "attributes"
|
|||||||
noteId TEXT NOT NULL,
|
noteId TEXT NOT NULL,
|
||||||
name TEXT NOT NULL,
|
name TEXT NOT NULL,
|
||||||
value TEXT,
|
value TEXT,
|
||||||
|
position INT NOT NULL DEFAULT 0,
|
||||||
dateCreated TEXT NOT NULL,
|
dateCreated TEXT NOT NULL,
|
||||||
dateModified TEXT NOT NULL,
|
dateModified TEXT NOT NULL,
|
||||||
isDeleted INT NOT NULL
|
isDeleted INT NOT NULL
|
||||||
|
@ -5,7 +5,7 @@ const utils = require('./utils');
|
|||||||
const sync_table = require('./sync_table');
|
const sync_table = require('./sync_table');
|
||||||
const Repository = require('./repository');
|
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) {
|
async function getNoteAttributeMap(noteId) {
|
||||||
return await sql.getMap(`SELECT name, value FROM attributes WHERE noteId = ?`, [noteId]);
|
return await sql.getMap(`SELECT name, value FROM attributes WHERE noteId = ?`, [noteId]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user