removed unique index again - from now on the invariant is that there's unique undeleted relationship between note and parent note

This commit is contained in:
azivner
2018-01-03 21:29:13 -05:00
parent 8d9b0db316
commit 548ecd4171
4 changed files with 68 additions and 112 deletions

View File

@@ -67,9 +67,6 @@ CREATE INDEX `IDX_sync_sync_date` ON `sync` (
CREATE INDEX `IDX_notes_is_deleted` ON `notes` (
`is_deleted`
);
CREATE INDEX `IDX_notes_tree_note_tree_id` ON `notes_tree` (
`note_tree_id`
);
CREATE UNIQUE INDEX `IDX_notes_tree_note_id_parent_note_id` ON `notes_tree` (
`note_id`,
`parent_note_id`