Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
fix share migration
zadamb6f7c604c763
diff --git a/db/migrations/0199__rename_ids.sql b/db/migrations/0199__rename_ids.sqlindex 1de3324a9f..ca1ed273e3 100644--- a/db/migrations/0199__rename_ids.sql+++ b/db/migrations/0199__rename_ids.sql@@ -42,3 +42,12 @@ UPDATE branches SET parentNoteId = '_search' WHERE parentNoteId = 'search';UPDATE attributes SET noteId = '_search' WHERE noteId = 'search';UPDATE attributes SET value = '_search' WHERE type = 'relation' AND value = 'search';UPDATE entity_changes SET entityId = '_search' WHERE entityId = 'search';++UPDATE notes SET noteId = '_share', title = 'Shared Notes' WHERE noteId = 'share';+UPDATE note_contents SET noteId = '_share' WHERE noteId = 'share';+UPDATE note_revisions SET noteId = '_share' WHERE noteId = 'share';+UPDATE branches SET noteId = '_share' WHERE noteId = 'share';+UPDATE branches SET parentNoteId = '_share' WHERE parentNoteId = 'share';+UPDATE attributes SET noteId = '_share' WHERE noteId = 'share';+UPDATE attributes SET value = '_share' WHERE type = 'relation' AND value = 'share';+UPDATE entity_changes SET entityId = '_share' WHERE entityId = 'share';