From 1a1fb126c1507184a349ee83b70c4e30184717ee Mon Sep 17 00:00:00 2001 From: zadam Date: Fri, 23 Dec 2022 20:55:37 +0100 Subject: [PATCH] randomize existing fixed branchIds so it's clear they should not be relied upon --- db/migrations/0198__NOOP.sql | 1 - db/migrations/0198__randomize_branchIds.sql | 7 +++++++ 2 files changed, 7 insertions(+), 1 deletion(-) delete mode 100644 db/migrations/0198__NOOP.sql create mode 100644 db/migrations/0198__randomize_branchIds.sql diff --git a/db/migrations/0198__NOOP.sql b/db/migrations/0198__NOOP.sql deleted file mode 100644 index e2f08fcea..000000000 --- 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 000000000..4e5a1bfe4 --- /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';