* Implemented DB cleaning on startup

* Must be enabled in conf AND set in worldstates for what you want to clean
* CLEANING_FLAG_ACHIEVEMENT_PROGRESS  = 0x1,
* CLEANING_FLAG_SKILLS                = 0x2,
* CLEANING_FLAG_SPELLS                = 0x4,
* CLEANING_FLAG_TALENTS               = 0x8
* Set to 0xF to clean all 4
* Patch by hunuza

--HG--
branch : trunk
This commit is contained in:
Brian
2010-07-22 13:41:19 -06:00
parent 903a3cbe76
commit c8662c888b
9 changed files with 227 additions and 3 deletions

View File

@@ -1976,7 +1976,8 @@ LOCK TABLES `worldstates` WRITE;
INSERT INTO `worldstates` (`entry`,`value`, `comment`) VALUES
(20001, 0, 'NextArenaPointDistributionTime'),
(20002, 0, 'NextWeeklyQuestResetTime'),
(20003, 0, 'NextBGRandomDailyResetTime');
(20003, 0, 'NextBGRandomDailyResetTime'),
(20004, 0, 'cleaning_flags');
/*!40000 ALTER TABLE `worldstates` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;