moved migration directory to db, fix sync records

This commit is contained in:
azivner
2018-01-28 21:00:54 -05:00
parent 75878c80a8
commit 9a0c2b6bcd
77 changed files with 20 additions and 17 deletions

View 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);