From e020e3430abc58f8e95d95c8400b2a9368a3fded Mon Sep 17 00:00:00 2001 From: Dom Eori <4j6dq2zi8@relay.firefox.com> Date: Wed, 4 Aug 2021 22:57:46 +0900 Subject: [PATCH] [chuni] Fix: make event popup to not show Automated scripts didn't work as expected, resulting some recent event popups showing during login. This commit will fix this. --- .../resources/db/migration/mysql/V44__fix_chuni_event_popup.sql | 2 ++ .../db/migration/sqlite/V44__fix_chuni_event_popup.sql | 2 ++ 2 files changed, 4 insertions(+) create mode 100644 src/main/resources/db/migration/mysql/V44__fix_chuni_event_popup.sql create mode 100644 src/main/resources/db/migration/sqlite/V44__fix_chuni_event_popup.sql diff --git a/src/main/resources/db/migration/mysql/V44__fix_chuni_event_popup.sql b/src/main/resources/db/migration/mysql/V44__fix_chuni_event_popup.sql new file mode 100644 index 00000000..87681ec1 --- /dev/null +++ b/src/main/resources/db/migration/mysql/V44__fix_chuni_event_popup.sql @@ -0,0 +1,2 @@ +UPDATE `chuni_game_event` SET `enable` = b'0' WHERE `type` = 1 AND `enable` = b'1'; +DELETE FROM `chuni_game_event` WHERE `id` = 19000; diff --git a/src/main/resources/db/migration/sqlite/V44__fix_chuni_event_popup.sql b/src/main/resources/db/migration/sqlite/V44__fix_chuni_event_popup.sql new file mode 100644 index 00000000..1d68167f --- /dev/null +++ b/src/main/resources/db/migration/sqlite/V44__fix_chuni_event_popup.sql @@ -0,0 +1,2 @@ +UPDATE `chuni_game_event` SET `enable` = false WHERE `type` = 1 AND `enable` = true; +DELETE FROM `chuni_game_event` WHERE `id` = 19000;