Skip to content

Commit

Permalink
fix migration
Browse files Browse the repository at this point in the history
  • Loading branch information
zadam committed Dec 24, 2022
1 parent e2b227d commit f08fbf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db/migrations/0201__move_share_under_hidden.sql
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
DELETE FROM branches WHERE noteId = '_share' AND parentNoteId != 'root'; -- delete all other branches of _share if any
DELETE FROM branches WHERE noteId = '_share' AND parentNoteId != 'root' AND parentNoteId != '_hidden'; -- delete all other branches of _share if any
UPDATE branches SET parentNoteId = '_hidden' WHERE noteId = '_share';

0 comments on commit f08fbf7

Please sign in to comment.