From 846ac9305ecb06f5f57295bcafd8f3538f5b3d08 Mon Sep 17 00:00:00 2001 From: zadam Date: Mon, 9 Oct 2023 23:08:25 +0300 Subject: [PATCH] don't anonymize option notes --- bin/tpl/anonymize-database.sql | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/tpl/anonymize-database.sql b/bin/tpl/anonymize-database.sql index ff935d6e1..019ef2697 100644 --- a/bin/tpl/anonymize-database.sql +++ b/bin/tpl/anonymize-database.sql @@ -1,5 +1,8 @@ UPDATE etapi_tokens SET tokenHash = 'API token hash value'; -UPDATE notes SET title = 'title' WHERE title NOT IN ('root', '_hidden', '_share'); +UPDATE notes SET title = 'title' + WHERE noteId NOT IN ('root', '_hidden', '_share') + AND SUBSTR(noteId, 1, 8) != '_options' + AND SUBSTR(noteId, 1, 3) != '_lb'; UPDATE blobs SET content = 'text' WHERE content IS NOT NULL; UPDATE revisions SET title = 'title';