not unique key between parent_note_id and note_id in schema

This commit is contained in:
azivner 2018-01-03 22:15:06 -05:00
parent 07c33979c3
commit 244a4562b1

View file

@ -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`
);