* Fixed Character converter thx for pointing to Muhaha

* Who already used this converter please apply ALTER TABLE `character_pet` ADD `slot` int(11) unsigned NOT NULL default '0' AFTER `renamed`;

--HG--
branch : trunk
This commit is contained in:
Drahy
2009-02-06 12:51:45 +01:00
parent a2112f27fc
commit 59cce00301
+6 -6
View File
@@ -264,12 +264,11 @@ DELETE FROM character_spell WHERE spell = 3104;
/* This cleanup character_action. This is like delete from character_action where type=0 and action not in character_spell for same player */ /* This cleanup character_action. This is like delete from character_action where type=0 and action not in character_spell for same player */
DELETE FROM ca,cs USING `character_action` ca LEFT JOIN `character_spell` cs ON ca.`guid`=cs.`guid` AND ca.`action`=cs.`spell` WHERE ca.`type`=0 AND cs.`guid` IS NULL; DELETE FROM ca,cs USING `character_action` ca LEFT JOIN `character_spell` cs ON ca.`guid`=cs.`guid` AND ca.`action`=cs.`spell` WHERE ca.`type`=0 AND cs.`guid` IS NULL;
alter table `character_pet` ALTER TABLE `character_pet`
drop column `trainpoint`, DROP COLUMN `trainpoint`,
drop column `loyaltypoints`, DROP COLUMN `loyaltypoints`,
drop column `loyalty`, DROP COLUMN `loyalty`,
DROP column slot, ADD `talentpoints` int(11) UNSIGNED default '0' NOT NULL after `Reactstate`;
add `talentpoints` int(11) UNSIGNED default '0' NOT NULL after `Reactstate`;
DROP TABLE IF EXISTS `account_data`; DROP TABLE IF EXISTS `account_data`;
CREATE TABLE `account_data` ( CREATE TABLE `account_data` (
@@ -297,6 +296,7 @@ CREATE TABLE `character_achievement_progress` (
PRIMARY KEY (`guid`,`criteria`) PRIMARY KEY (`guid`,`criteria`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8; ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- 3.x character converting...
UPDATE characters SET data = REPLACE(data,' ',' '); UPDATE characters SET data = REPLACE(data,' ',' ');
UPDATE characters SET data = CONCAT(TRIM(data),' '); UPDATE characters SET data = CONCAT(TRIM(data),' ');
UPDATE characters SET data = CONCAT( UPDATE characters SET data = CONCAT(