mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 19:05:59 +01:00
added foreign keys to relations to guarantee data consistency
This commit is contained in:
@@ -37,8 +37,8 @@ const dbReady = new Promise((resolve, reject) => {
|
||||
await insert('notes_tree', {
|
||||
note_tree_id: utils.newNoteTreeId(),
|
||||
note_id: noteId,
|
||||
note_pid: 'root',
|
||||
note_pos: 1,
|
||||
parent_note_id: 'root',
|
||||
note_position: 1,
|
||||
is_deleted: 0,
|
||||
date_modified: now
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user