From 69baccff0df79d8be8619053efbc7cd0543b4f4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefano=20Borz=C3=AC?= Date: Fri, 22 Nov 2019 08:56:04 +0100 Subject: [PATCH] feat(DB/characters): added comments to worldstates (#2384) --- .../rev_1572030074009407852.sql | 8 ++++++++ src/server/worldserver/worldserver.conf.dist | 17 +++++++++++++---- 2 files changed, 21 insertions(+), 4 deletions(-) create mode 100644 data/sql/updates/pending_db_characters/rev_1572030074009407852.sql diff --git a/data/sql/updates/pending_db_characters/rev_1572030074009407852.sql b/data/sql/updates/pending_db_characters/rev_1572030074009407852.sql new file mode 100644 index 000000000..ec9ed31ce --- /dev/null +++ b/data/sql/updates/pending_db_characters/rev_1572030074009407852.sql @@ -0,0 +1,8 @@ +INSERT INTO `version_db_characters` (`sql_rev`) VALUES ('1572030074009407852'); + +UPDATE `worldstates` SET `comment`='NextArenaPointDistributionTime' WHERE `entry`=20001; +UPDATE `worldstates` SET `comment`='NextWeeklyQuestResetTime' WHERE `entry`=20002; +UPDATE `worldstates` SET `comment`='NextBGRandomDailyResetTime' WHERE `entry`=20003; +UPDATE `worldstates` SET `comment`='cleaning_flags' WHERE `entry`=20005; +UPDATE `worldstates` SET `comment`='NextGuildDailyResetTime' WHERE `entry`=20006; +UPDATE `worldstates` SET `comment`='NextMonthlyQuestResetTime' WHERE `entry`=20007; diff --git a/src/server/worldserver/worldserver.conf.dist b/src/server/worldserver/worldserver.conf.dist index a89574bf6..339c61edb 100644 --- a/src/server/worldserver/worldserver.conf.dist +++ b/src/server/worldserver/worldserver.conf.dist @@ -392,10 +392,19 @@ CleanCharacterDB = 0 # # PersistentCharacterCleanFlags # Description: Determines the character clean flags that remain set after cleanups. -# This is a bitmask value, check /doc/CharacterDBCleanup.txt for more -# information. -# Example: 14 - (Cleaning up skills, talents and spells will remain enabled after the -# next cleanup) +# This is a bitmask value, you can use one of the following values: +# +# CLEANING_FLAG_ACHIEVEMENT_PROGRESS = 0x1 +# CLEANING_FLAG_SKILLS = 0x2 +# CLEANING_FLAG_SPELLS = 0x4 +# CLEANING_FLAG_TALENTS = 0x8 +# CLEANING_FLAG_QUESTSTATUS = 0x10 +# +# Before use this feature, make a backup of your database. +# +# Example: 14 - (CLEANING_FLAG_SKILLS + CLEANING_FLAG_SPELLS + CLEANING_FLAG_TALENTS +# 2+4+8 => 14. This will clean up skills, talents and spells will +# remain enabled after the next cleanup) # Default: 0 - (All cleanup methods will be disabled after the next cleanup) PersistentCharacterCleanFlags = 0