Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- DROP TABLE IF EXISTS `characters_trans`;
- CREATE TABLE `characters_trans` (
- `guid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Global Unique Identifier',
- `trans_x` float NOT NULL DEFAULT '0',
- `trans_y` float NOT NULL DEFAULT '0',
- `trans_z` float NOT NULL DEFAULT '0',
- `trans_o` float NOT NULL DEFAULT '0',
- `transguid` mediumint(8) unsigned NOT NULL DEFAULT '0',
- PRIMARY KEY (`guid`)
- ) ENGINE=INNODB DEFAULT CHARSET=utf8;
- DROP TABLE IF EXISTS `characters_deleted`;
- CREATE TABLE `characters_deleted` (
- `guid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Global Unique Identifier',
- `deleteInfos_Account` int(10) unsigned DEFAULT NULL,
- `deleteInfos_Name` varchar(12) DEFAULT NULL,
- `deleteDate` int(10) unsigned DEFAULT NULL,
- PRIMARY KEY (`guid`)
- ) ENGINE=INNODB DEFAULT CHARSET=utf8;
- DROP TABLE IF EXISTS `characters_at_login`;
- CREATE TABLE `characters_at_login` (
- `guid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Global Unique Identifier',
- `at_login` smallint(5) unsigned NOT NULL DEFAULT '0',
- PRIMARY KEY (`guid`)
- ) ENGINE=INNODB DEFAULT CHARSET=utf8;
- DROP TABLE IF EXISTS `characters_drunk`;
- CREATE TABLE `characters_drunk` (
- `guid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Global Unique Identifier',
- `drunk` tinyint(3) unsigned NOT NULL DEFAULT '0',
- PRIMARY KEY (`guid`)
- ) ENGINE=INNODB DEFAULT CHARSET=utf8;
- DROP TABLE IF EXISTS `characters_grantableLevels`;
- CREATE TABLE `characters_grantableLevels` (
- `guid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Global Unique Identifier',
- `grantableLevels` tinyint(3) unsigned NOT NULL DEFAULT '0',
- PRIMARY KEY (`guid`)
- ) ENGINE=INNODB DEFAULT CHARSET=utf8;
- DROP TABLE IF EXISTS `characters_stable_slots`;
- CREATE TABLE `characters_stable_slots` (
- `guid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Global Unique Identifier',
- `stable_slots` tinyint(3) unsigned NOT NULL DEFAULT '0',
- PRIMARY KEY (`guid`)
- ) ENGINE=INNODB DEFAULT CHARSET=utf8;
- DROP TABLE IF EXISTS `characters_taxi_path`;
- CREATE TABLE `characters_taxi_path` (
- `guid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Global Unique Identifier',
- `taxi_path` text,
- PRIMARY KEY (`guid`)
- ) ENGINE=INNODB DEFAULT CHARSET=utf8;
- DROP TABLE IF EXISTS `characters_resettalents`;
- CREATE TABLE `characters_resettalents` (
- `guid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Global Unique Identifier',
- `resettalents_cost` int(10) unsigned NOT NULL DEFAULT '0',
- `resettalents_time` int(10) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`guid`)
- ) ENGINE=INNODB DEFAULT CHARSET=utf8;
- DROP TABLE IF EXISTS `characters_pvp_stats`;
- CREATE TABLE `characters_pvp_stats` (
- `guid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Global Unique Identifier',
- `arenaPoints` int(10) unsigned NOT NULL DEFAULT '0',
- `totalHonorPoints` int(10) unsigned NOT NULL DEFAULT '0',
- `todayHonorPoints` int(10) unsigned NOT NULL DEFAULT '0',
- `yesterdayHonorPoints` int(10) unsigned NOT NULL DEFAULT '0',
- `totalKills` int(10) unsigned NOT NULL DEFAULT '0',
- `todayKills` smallint(5) unsigned NOT NULL DEFAULT '0',
- `yesterdayKills` smallint(5) unsigned NOT NULL DEFAULT '0'
- ) ENGINE=INNODB DEFAULT CHARSET=utf8;
- DROP TABLE IF EXISTS `item_instance_enchantments`;
- CREATE TABLE `item_instance_enchantments` (
- `guid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Global Unique Identifier',
- `enchantments` text NOT NULL,
- PRIMARY KEY (`guid`)
- ) ENGINE=INNODB DEFAULT CHARSET=utf8;
- DROP TABLE IF EXISTS `item_instance_charges`;
- CREATE TABLE `item_instance_charges` (
- `guid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Global Unique Identifier',
- `charges` tinytext,
- PRIMARY KEY (`guid`)
- ) ENGINE=INNODB DEFAULT CHARSET=utf8;
- DROP TABLE IF EXISTS `item_instance_text`;
- CREATE TABLE `item_instance_text` (
- `guid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Global Unique Identifier',
- `text` text,
- PRIMARY KEY (`guid`)
- ) ENGINE=INNODB DEFAULT CHARSET=utf8;
- DROP TABLE IF EXISTS `item_instance_duration`;
- CREATE TABLE `item_instance_duration` (
- `guid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Global Unique Identifier',
- `duration` int(10) NOT NULL DEFAULT '0',
- PRIMARY KEY (`guid`)
- ) ENGINE=INNODB DEFAULT CHARSET=utf8;
- DROP TABLE IF EXISTS `item_instance_randomPropertyId`;
- CREATE TABLE `item_instance_randomPropertyId` (
- `guid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Global Unique Identifier',
- `randomPropertyId` smallint(5) NOT NULL DEFAULT '0',
- PRIMARY KEY (`guid`)
- ) ENGINE=INNODB DEFAULT CHARSET=utf8;
- INSERT INTO characters_trans (`guid`, `trans_x`, `trans_y`, `trans_z`, `trans_o`, `transguid`)
- (SELECT characters.guid, characters.trans_x, characters.trans_y, characters.trans_z, characters.trans_o, characters.transguid FROM characters WHERE characters.trans_x != 0);
- INSERT INTO characters_deleted (`guid`, `deleteInfos_Account`, `deleteInfos_Name`, `deleteDate`)
- (SELECT characters.guid, characters.deleteInfos_Account, characters.deleteInfos_Name, characters.deleteDate FROM characters WHERE characters.deleteInfos_Account IS NOT NULL);
- INSERT INTO characters_at_login (`guid`, `at_login`)
- (SELECT characters.guid, characters.at_login FROM characters WHERE characters.at_login >0);
- INSERT INTO characters_drunk (`guid`, `drunk`)
- (SELECT characters.guid, characters.drunk FROM characters WHERE characters.drunk >0);
- INSERT INTO characters_grantableLevels (`guid`, `grantableLevels`)
- (SELECT characters.guid, characters.grantableLevels FROM characters WHERE characters.grantableLevels >0);
- INSERT INTO characters_stable_slots (`guid`, `stable_slots`)
- (SELECT characters.guid, characters.stable_slots FROM characters WHERE characters.stable_slots >0);
- INSERT INTO characters_taxi_path (`guid`, `taxi_path`)
- (SELECT characters.guid, characters.taxi_path FROM characters WHERE characters.taxi_path <> '');
- INSERT INTO characters_resettalents (`guid`, `resettalents_cost`, `resettalents_time`)
- (SELECT characters.guid, characters.resettalents_cost, characters.resettalents_time FROM characters WHERE characters.resettalents_cost >0);
- INSERT INTO characters_pvp_stats (`guid`, `arenaPoints`,`totalHonorPoints`,`todayHonorPoints`,`yesterdayHonorPoints`,`totalKills`,`todayKills`,`yesterdayKills`)
- (SELECT characters.guid, characters.arenaPoints, characters.totalHonorPoints, characters.todayHonorPoints, characters.yesterdayHonorPoints, characters.totalKills, characters.todayKills, characters.yesterdayKills FROM characters WHERE characters.arenaPoints >0 OR characters.totalHonorPoints >0 OR todayHonorPoints >0 OR yesterdayHonorPoints >0 OR totalKills >0 OR todayKills >0 OR yesterdayKills >0);
- INSERT INTO item_instance_text (`guid`, `text`)
- (SELECT item_instance.guid, item_instance.text FROM item_instance WHERE item_instance.text <> '');
- INSERT INTO item_instance_charges (`guid`, `charges`)
- (SELECT item_instance.guid, item_instance.charges FROM item_instance WHERE item_instance.charges <> '0 0 0 0 0 ');
- INSERT INTO item_instance_enchantments (`guid`, `enchantments`)
- (SELECT item_instance.guid, item_instance.enchantments FROM item_instance WHERE item_instance.enchantments <> '0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0');
- INSERT INTO item_instance_duration (`guid`, `duration`)
- (SELECT item_instance.guid, item_instance.duration FROM item_instance WHERE item_instance.duration > 0);
- INSERT INTO item_instance_randomPropertyId (`guid`, `randomPropertyId`)
- (SELECT item_instance.guid, item_instance.randomPropertyId FROM item_instance WHERE item_instance.randomPropertyId <> 0);
- ALTER TABLE `characters` DROP `trans_x`, DROP `trans_y`, DROP `trans_z`, DROP `trans_o`, DROP `transguid`,
- DROP `deleteInfos_Account`, DROP `deleteInfos_Name`, DROP `deleteDate`,
- DROP `at_login`, DROP `drunk`, DROP `grantableLevels`,
- DROP `stable_slots`, DROP `taxi_path`,
- DROP `resettalents_time`, DROP `resettalents_cost`,
- DROP `arenaPoints`, DROP `totalHonorPoints`, DROP `todayHonorPoints`, DROP `yesterdayHonorPoints`,
- DROP `totalKills`, DROP `todayKills`, DROP `yesterdayKills`;
- ALTER TABLE `item_instance` DROP `text`, DROP `charges`, DROP `enchantments`, DROP `duration`, DROP `randomPropertyId`;
Advertisement
Add Comment
Please, Sign In to add comment