Skip to content

Build your personal knowledge base with Trilium Notes

not unique key between parent_note_id and note_id in schema

azivner244a4562b108
diff --git a/db/schema.sql b/db/schema.sql
index 7aaea2fbd5..937733e4cc 100644
--- a/db/schema.sql
+++ b/db/schema.sql
@@ -67,7 +67,7 @@ CREATE INDEX `IDX_sync_sync_date` ON `sync` (
CREATE INDEX `IDX_notes_is_deleted` ON `notes` (
`is_deleted`
);
-CREATE UNIQUE INDEX `IDX_notes_tree_note_id_parent_note_id` ON `notes_tree` (
+CREATE INDEX `IDX_notes_tree_note_id_parent_note_id` ON `notes_tree` (
`note_id`,
`parent_note_id`
);