Skip to content

Build your personal knowledge base with Trilium Notes

randomize existing fixed branchIds so it's clear they should not be relied upon

zadam1a1fb126c150
diff --git a/db/migrations/0198__NOOP.sql b/db/migrations/0198__NOOP.sql
deleted file mode 100644
index e2f08fcea6..0000000000
--- a/db/migrations/0198__NOOP.sql
+++ /dev/null
@@ -1 +0,0 @@
--- NOOP
diff --git a/db/migrations/0198__randomize_branchIds.sql b/db/migrations/0198__randomize_branchIds.sql
new file mode 100644
index 0000000000..4e5a1bfe46
--- /dev/null
+++ b/db/migrations/0198__randomize_branchIds.sql
@@ -0,0 +1,7 @@
+-- "randomize" branchIds so it's clear user should not rely on them
+UPDATE branches SET branchId = '7LSsI2FnZPW2' WHERE parentNoteId = 'hidden' AND noteId = 'search';
+UPDATE branches SET branchId = 'wEcmxk4CNC7G' WHERE parentNoteId = 'singles' AND noteId = 'globalnotemap';
+UPDATE branches SET branchId = '191uVR6Cu6fA' WHERE parentNoteId = 'hidden' AND noteId = 'sqlconsole';
+UPDATE branches SET branchId = 'OjX5Phxp6A4N' WHERE parentNoteId = 'root' AND noteId = 'hidden';
+UPDATE branches SET branchId = 'glNBYFYZRH8P' WHERE parentNoteId = 'hidden' AND noteId = 'bulkaction';
+UPDATE branches SET branchId = 'cAT25wvGMg3K' WHERE parentNoteId = 'root' AND noteId = 'share';