-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
removed unique index again - from now on the invariant is that there'…
…s unique undeleted relationship between note and parent note
- Loading branch information
Showing
4 changed files
with
68 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
DROP INDEX IDX_notes_tree_note_id_parent_note_id; | ||
|
||
CREATE INDEX `IDX_notes_tree_note_id_parent_note_id` ON `notes_tree` ( | ||
`note_id`, | ||
`parent_note_id` | ||
); | ||
|
||
-- dropping this as it's just duplicate of primary key | ||
DROP INDEX IDX_notes_tree_note_tree_id; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters