DB Updates

This commit is contained in:
hondacrx
2022-05-10 09:40:07 -04:00
parent ad65e14735
commit 1404bdb1ac
476 changed files with 383664 additions and 353 deletions
@@ -1,3 +1,3 @@
-- TDB 915.22011 characters
-- TDB 915.22012 characters
UPDATE `updates` SET `state`='ARCHIVED',`speed`=0;
REPLACE INTO `updates_include` (`path`, `state`) VALUES ('$/sql/old/9.x/characters', 'ARCHIVED');
@@ -0,0 +1 @@
ALTER TABLE `characters` DROP `stable_slots`;
@@ -0,0 +1,3 @@
ALTER TABLE `characters` ADD `summonedPetNumber` int unsigned NOT NULL DEFAULT '0' AFTER `extra_flags`;
UPDATE `characters` SET `summonedPetNumber` = COALESCE((SELECT `id` FROM `character_pet` WHERE `owner` = `guid` AND `slot` = 0 AND `curhealth` > 0), 0);
@@ -0,0 +1,3 @@
ALTER TABLE `character_pet` CHANGE `slot` `slot` smallint NOT NULL DEFAULT '-1';
UPDATE `character_pet` SET `slot` = -1 WHERE `slot` = 100;