mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 03:16:11 +01:00
moved migration directory to db, fix sync records
This commit is contained in:
12
db/migrations/0066__create_attributes_table.sql
Normal file
12
db/migrations/0066__create_attributes_table.sql
Normal file
@@ -0,0 +1,12 @@
|
||||
CREATE TABLE attributes
|
||||
(
|
||||
attribute_id TEXT PRIMARY KEY NOT NULL,
|
||||
note_id TEXT NOT NULL,
|
||||
name TEXT NOT NULL,
|
||||
value TEXT,
|
||||
date_created TEXT NOT NULL,
|
||||
date_modified TEXT NOT NULL
|
||||
);
|
||||
|
||||
CREATE INDEX attributes_note_id_index ON attributes (note_id);
|
||||
CREATE UNIQUE INDEX attributes_note_id_name_index ON attributes (note_id, name);
|
||||
Reference in New Issue
Block a user