Skip to content

armgit / memos

Public Imported from GitHub
0

Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.

chore: remove unused script

johnnyjoy80785de900db
diff --git a/store/migration/mysql/prod/0.23/00__reactions.sql b/store/migration/mysql/prod/0.23/00__reactions.sql
index 708755874..13979d15c 100644
--- a/store/migration/mysql/prod/0.23/00__reactions.sql
+++ b/store/migration/mysql/prod/0.23/00__reactions.sql
@@ -10,17 +10,3 @@ UPDATE `reaction` SET `reaction_type` = 'πŸ‘€' WHERE `reaction_type` = 'EYES';
UPDATE `reaction` SET `reaction_type` = 'πŸ€”' WHERE `reaction_type` = 'THINKING_FACE';
UPDATE `reaction` SET `reaction_type` = '🀑' WHERE `reaction_type` = 'CLOWN_FACE';
UPDATE `reaction` SET `reaction_type` = '❓' WHERE `reaction_type` = 'QUESTION_MARK';
-
-INSERT INTO `system_setting` (`name`, `value`, `description`)
-VALUES (
- 'MEMO_RELATED',
- '{"contentLengthLimit":8192,"reactions":["πŸ‘","πŸ‘Ž","πŸ’›","πŸ”₯","πŸ‘","πŸ˜‚","πŸ‘Œ","πŸš€","πŸ‘€","πŸ€”","🀑","❓"]}',
- ''
-)
-ON DUPLICATE KEY UPDATE
-value =
- JSON_SET(
- value,
- '$.reactions',
- JSON_ARRAY('πŸ‘', 'πŸ‘Ž', 'πŸ’›', 'πŸ”₯', 'πŸ‘', 'πŸ˜‚', 'πŸ‘Œ', 'πŸš€', 'πŸ‘€', 'πŸ€”', '🀑', '❓')
- );
diff --git a/store/migration/postgres/prod/0.23/00__reactions.sql b/store/migration/postgres/prod/0.23/00__reactions.sql
index e0d3e97df..a01e95a29 100644
--- a/store/migration/postgres/prod/0.23/00__reactions.sql
+++ b/store/migration/postgres/prod/0.23/00__reactions.sql
@@ -10,17 +10,3 @@ UPDATE "reaction" SET "reaction_type" = 'πŸ‘€' WHERE "reaction_type" = 'EYES';
UPDATE "reaction" SET "reaction_type" = 'πŸ€”' WHERE "reaction_type" = 'THINKING_FACE';
UPDATE "reaction" SET "reaction_type" = '🀑' WHERE "reaction_type" = 'CLOWN_FACE';
UPDATE "reaction" SET "reaction_type" = '❓' WHERE "reaction_type" = 'QUESTION_MARK';
-
-INSERT INTO "system_setting" ("name", "value", "description")
-VALUES (
- 'MEMO_RELATED',
- '{"contentLengthLimit":8192,"reactions":["πŸ‘","πŸ‘Ž","πŸ’›","πŸ”₯","πŸ‘","πŸ˜‚","πŸ‘Œ","πŸš€","πŸ‘€","πŸ€”","🀑","❓"]}',
- ''
-)
-ON CONFLICT("name") DO UPDATE
-SET "value" =
- jsonb_set(
- "system_setting"."value"::jsonb,
- '{reactions}',
- '["πŸ‘","πŸ‘Ž","πŸ’›","πŸ”₯","πŸ‘","πŸ˜‚","πŸ‘Œ","πŸš€","πŸ‘€","πŸ€”","🀑","❓"]'::jsonb
- );
diff --git a/store/migration/sqlite/prod/0.23/00__reactions.sql b/store/migration/sqlite/prod/0.23/00__reactions.sql
index 395b55677..13979d15c 100644
--- a/store/migration/sqlite/prod/0.23/00__reactions.sql
+++ b/store/migration/sqlite/prod/0.23/00__reactions.sql
@@ -10,17 +10,3 @@ UPDATE `reaction` SET `reaction_type` = 'πŸ‘€' WHERE `reaction_type` = 'EYES';
UPDATE `reaction` SET `reaction_type` = 'πŸ€”' WHERE `reaction_type` = 'THINKING_FACE';
UPDATE `reaction` SET `reaction_type` = '🀑' WHERE `reaction_type` = 'CLOWN_FACE';
UPDATE `reaction` SET `reaction_type` = '❓' WHERE `reaction_type` = 'QUESTION_MARK';
-
-INSERT INTO `system_setting` (`name`, `value`, `description`)
-VALUES (
- 'MEMO_RELATED',
- '{"contentLengthLimit":8192,"reactions":["πŸ‘","πŸ‘Ž","πŸ’›","πŸ”₯","πŸ‘","πŸ˜‚","πŸ‘Œ","πŸš€","πŸ‘€","πŸ€”","🀑","❓"]}',
- ''
-)
-ON CONFLICT(name) DO UPDATE
-SET value =
- json_set(
- value,
- '$.reactions',
- json_array('πŸ‘', 'πŸ‘Ž', 'πŸ’›', 'πŸ”₯', 'πŸ‘', 'πŸ˜‚', 'πŸ‘Œ', 'πŸš€', 'πŸ‘€', 'πŸ€”', '🀑', '❓')
- );