From a0797532e8df1710ae4def2ff3836a1f81a48310 Mon Sep 17 00:00:00 2001 From: sanctum32 Date: Mon, 5 Aug 2013 17:08:22 +0300 Subject: [PATCH] updated characters.sql structure --- sql/characters.sql | 1428 ++++++++++++++++++++++---------------- src/shared/revision_nr.h | 2 +- 2 files changed, 836 insertions(+), 594 deletions(-) diff --git a/sql/characters.sql b/sql/characters.sql index 1e0c77c4b..2fb1e178f 100644 --- a/sql/characters.sql +++ b/sql/characters.sql @@ -1,8 +1,20 @@ --- MySQL dump 10.11 -- --- Host: localhost Database: characters --- ------------------------------------------------------ --- Server version 5.0.45-Debian_1ubuntu3.1-log +-- Copyright (C) 2005-2012 MaNGOS +-- +-- This program is free software; you can redistribute it and/or modify +-- it under the terms of the GNU General Public License as published by +-- the Free Software Foundation; either version 2 of the License, or +-- (at your option) any later version. +-- +-- This program is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU General Public License for more details. +-- +-- You should have received a copy of the GNU General Public License +-- along with this program; if not, write to the Free Software +-- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +-- /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; @@ -15,38 +27,21 @@ /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; --- --- Table structure for table `character_db_version` --- - -DROP TABLE IF EXISTS `character_db_version`; -CREATE TABLE `character_db_version` ( - `required_12161_01_characters_characters` bit(1) default NULL -) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Last applied sql update to DB'; - --- --- Dumping data for table `character_db_version` --- - -LOCK TABLES `character_db_version` WRITE; -/*!40000 ALTER TABLE `character_db_version` DISABLE KEYS */; -INSERT INTO `character_db_version` VALUES -(NULL); -/*!40000 ALTER TABLE `character_db_version` ENABLE KEYS */; -UNLOCK TABLES; - -- -- Table structure for table `account_data` -- DROP TABLE IF EXISTS `account_data`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; CREATE TABLE `account_data` ( - `account` int(11) unsigned NOT NULL default '0', - `type` int(11) unsigned NOT NULL default '0', - `time` bigint(11) unsigned NOT NULL default '0', + `account` int(11) unsigned NOT NULL DEFAULT '0', + `type` int(11) unsigned NOT NULL DEFAULT '0', + `time` bigint(11) unsigned NOT NULL DEFAULT '0', `data` longblob NOT NULL, - PRIMARY KEY (`account`,`type`) + PRIMARY KEY (`account`,`type`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `account_data` @@ -62,18 +57,21 @@ UNLOCK TABLES; -- DROP TABLE IF EXISTS `arena_team`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; CREATE TABLE `arena_team` ( - `arenateamid` int(10) unsigned NOT NULL default '0', + `arenateamid` int(10) unsigned NOT NULL DEFAULT '0', `name` char(255) NOT NULL, - `captainguid` int(10) unsigned NOT NULL default '0', - `type` tinyint(3) unsigned NOT NULL default '0', - `BackgroundColor` int(10) unsigned NOT NULL default '0', - `EmblemStyle` int(10) unsigned NOT NULL default '0', - `EmblemColor` int(10) unsigned NOT NULL default '0', - `BorderStyle` int(10) unsigned NOT NULL default '0', - `BorderColor` int(10) unsigned NOT NULL default '0', - PRIMARY KEY (`arenateamid`) + `captainguid` int(10) unsigned NOT NULL DEFAULT '0', + `type` tinyint(3) unsigned NOT NULL DEFAULT '0', + `BackgroundColor` int(10) unsigned NOT NULL DEFAULT '0', + `EmblemStyle` int(10) unsigned NOT NULL DEFAULT '0', + `EmblemColor` int(10) unsigned NOT NULL DEFAULT '0', + `BorderStyle` int(10) unsigned NOT NULL DEFAULT '0', + `BorderColor` int(10) unsigned NOT NULL DEFAULT '0', + PRIMARY KEY (`arenateamid`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `arena_team` @@ -89,16 +87,19 @@ UNLOCK TABLES; -- DROP TABLE IF EXISTS `arena_team_member`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; CREATE TABLE `arena_team_member` ( - `arenateamid` int(10) unsigned NOT NULL default '0', - `guid` int(10) unsigned NOT NULL default '0', - `played_week` int(10) unsigned NOT NULL default '0', - `wons_week` int(10) unsigned NOT NULL default '0', - `played_season` int(10) unsigned NOT NULL default '0', - `wons_season` int(10) unsigned NOT NULL default '0', - `personal_rating` int(10) UNSIGNED NOT NULL DEFAULT '0', - PRIMARY KEY (`arenateamid`,`guid`) + `arenateamid` int(10) unsigned NOT NULL DEFAULT '0', + `guid` int(10) unsigned NOT NULL DEFAULT '0', + `played_week` int(10) unsigned NOT NULL DEFAULT '0', + `wons_week` int(10) unsigned NOT NULL DEFAULT '0', + `played_season` int(10) unsigned NOT NULL DEFAULT '0', + `wons_season` int(10) unsigned NOT NULL DEFAULT '0', + `personal_rating` int(10) unsigned NOT NULL DEFAULT '0', + PRIMARY KEY (`arenateamid`,`guid`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `arena_team_member` @@ -114,16 +115,19 @@ UNLOCK TABLES; -- DROP TABLE IF EXISTS `arena_team_stats`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; CREATE TABLE `arena_team_stats` ( - `arenateamid` int(10) unsigned NOT NULL default '0', - `rating` int(10) unsigned NOT NULL default '0', - `games_week` int(10) unsigned NOT NULL default '0', - `wins_week` int(10) unsigned NOT NULL default '0', - `games_season` int(10) unsigned NOT NULL default '0', - `wins_season` int(10) unsigned NOT NULL default '0', - `rank` int(10) unsigned NOT NULL default '0', - PRIMARY KEY (`arenateamid`) + `arenateamid` int(10) unsigned NOT NULL DEFAULT '0', + `rating` int(10) unsigned NOT NULL DEFAULT '0', + `games_week` int(10) unsigned NOT NULL DEFAULT '0', + `wins_week` int(10) unsigned NOT NULL DEFAULT '0', + `games_season` int(10) unsigned NOT NULL DEFAULT '0', + `wins_season` int(10) unsigned NOT NULL DEFAULT '0', + `rank` int(10) unsigned NOT NULL DEFAULT '0', + PRIMARY KEY (`arenateamid`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `arena_team_stats` @@ -139,23 +143,26 @@ UNLOCK TABLES; -- DROP TABLE IF EXISTS `auction`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; CREATE TABLE `auction` ( - `id` int(11) unsigned NOT NULL default '0', - `houseid` int(11) unsigned NOT NULL default '0', - `itemguid` int(11) unsigned NOT NULL default '0', - `item_template` int(11) unsigned NOT NULL default '0' COMMENT 'Item Identifier', - `item_count` int(11) unsigned NOT NULL default '0', - `item_randompropertyid` int(11) NOT NULL default '0', - `itemowner` int(11) unsigned NOT NULL default '0', - `buyoutprice` int(11) NOT NULL default '0', - `time` bigint(40) unsigned NOT NULL default '0', - `moneyTime` bigint(40) unsigned NOT NULL default '0', - `buyguid` int(11) unsigned NOT NULL default '0', - `lastbid` int(11) NOT NULL default '0', - `startbid` int(11) NOT NULL default '0', - `deposit` int(11) NOT NULL default '0', - PRIMARY KEY (`id`) + `id` int(11) unsigned NOT NULL DEFAULT '0', + `houseid` int(11) unsigned NOT NULL DEFAULT '0', + `itemguid` int(11) unsigned NOT NULL DEFAULT '0', + `item_template` int(11) unsigned NOT NULL DEFAULT '0' COMMENT 'Item Identifier', + `item_count` int(11) unsigned NOT NULL DEFAULT '0', + `item_randompropertyid` int(11) NOT NULL DEFAULT '0', + `itemowner` int(11) unsigned NOT NULL DEFAULT '0', + `buyoutprice` bigint(40) NOT NULL DEFAULT '0', + `time` bigint(40) unsigned NOT NULL DEFAULT '0', + `moneyTime` bigint(40) unsigned NOT NULL DEFAULT '0', + `buyguid` int(11) unsigned NOT NULL DEFAULT '0', + `lastbid` bigint(40) NOT NULL DEFAULT '0', + `startbid` bigint(40) NOT NULL DEFAULT '0', + `deposit` bigint(40) NOT NULL DEFAULT '0', + PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `auction` @@ -171,12 +178,15 @@ UNLOCK TABLES; -- DROP TABLE IF EXISTS `bugreport`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; CREATE TABLE `bugreport` ( - `id` int(11) NOT NULL auto_increment COMMENT 'Identifier', - `type` longtext NOT NULL default '', - `content` longtext NOT NULL default '', - PRIMARY KEY (`id`) + `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Identifier', + `type` longtext NOT NULL, + `content` longtext NOT NULL, + PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Debug System'; +/*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `bugreport` @@ -188,100 +198,54 @@ LOCK TABLES `bugreport` WRITE; UNLOCK TABLES; -- --- Table structure for table `characters` +-- Table structure for table `calendar_events` -- -DROP TABLE IF EXISTS `characters`; -CREATE TABLE `characters` ( - `guid` int(11) unsigned NOT NULL default '0' COMMENT 'Global Unique Identifier', - `account` int(11) unsigned NOT NULL default '0' COMMENT 'Account Identifier', - `name` varchar(12) NOT NULL default '', - `race` tinyint(3) unsigned NOT NULL default '0', - `class` tinyint(3) unsigned NOT NULL default '0', - `gender` TINYINT UNSIGNED NOT NULL default '0', - `level` TINYINT UNSIGNED NOT NULL default '0', - `xp` INT UNSIGNED NOT NULL default '0', - `money` INT UNSIGNED NOT NULL default '0', - `playerBytes` INT UNSIGNED NOT NULL default '0', - `playerBytes2` INT UNSIGNED NOT NULL default '0', - `playerFlags` INT UNSIGNED NOT NULL default '0', - `position_x` float NOT NULL default '0', - `position_y` float NOT NULL default '0', - `position_z` float NOT NULL default '0', - `map` int(11) unsigned NOT NULL default '0' COMMENT 'Map Identifier', - `dungeon_difficulty` tinyint(1) unsigned NOT NULL DEFAULT '0', - `orientation` float NOT NULL default '0', - `taximask` longtext, - `online` tinyint(3) unsigned NOT NULL default '0', - `cinematic` tinyint(3) unsigned NOT NULL default '0', - `totaltime` int(11) unsigned NOT NULL default '0', - `leveltime` int(11) unsigned NOT NULL default '0', - `logout_time` bigint(20) unsigned NOT NULL default '0', - `is_logout_resting` tinyint(3) unsigned NOT NULL default '0', - `rest_bonus` float NOT NULL default '0', - `resettalents_cost` int(11) unsigned NOT NULL default '0', - `resettalents_time` bigint(20) unsigned NOT NULL default '0', - `primary_trees` varchar(10) NOT NULL DEFAULT '0 0 ', - `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` bigint(20) unsigned NOT NULL default '0', - `extra_flags` int(11) unsigned NOT NULL default '0', - `stable_slots` tinyint(1) unsigned NOT NULL default '0', - `at_login` int(11) unsigned NOT NULL default '0', - `zone` int(11) unsigned NOT NULL default '0', - `death_expire_time` bigint(20) unsigned NOT NULL default '0', - `taxi_path` text, - `totalKills` int(10) UNSIGNED NOT NULL default '0', - `todayKills` smallint(5) UNSIGNED NOT NULL default '0', - `yesterdayKills` smallint(5) UNSIGNED NOT NULL default '0', - `chosenTitle` int(10) UNSIGNED NOT NULL default '0', - `watchedFaction` int(10) UNSIGNED NOT NULL default '0', - `drunk` smallint(5) UNSIGNED NOT NULL default '0', - `health` int(10) UNSIGNED NOT NULL default '0', - `power1` int(10) UNSIGNED NOT NULL default '0', - `power2` int(10) UNSIGNED NOT NULL default '0', - `power3` int(10) UNSIGNED NOT NULL default '0', - `power4` int(10) UNSIGNED NOT NULL default '0', - `power5` int(10) UNSIGNED NOT NULL default '0', - `specCount` tinyint(3) UNSIGNED NOT NULL default '1', - `activeSpec` tinyint(3) UNSIGNED NOT NULL default '0', - `exploredZones` longtext, - `equipmentCache` longtext, - `knownTitles` longtext, - `actionBars` tinyint(3) UNSIGNED NOT NULL default '0', - `slot` tinyint(3) unsigned NOT NULL DEFAULT '255', - `deleteInfos_Account` int(11) UNSIGNED default NULL, - `deleteInfos_Name` varchar(12) default NULL, - `deleteDate` bigint(20) unsigned default NULL, - PRIMARY KEY (`guid`), - KEY `idx_account` (`account`), - KEY `idx_online` (`online`), - KEY `idx_name` (`name`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Player System'; +DROP TABLE IF EXISTS `calendar_events`; +CREATE TABLE `calendar_events` ( + `eventId` bigint(10) unsigned NOT NULL DEFAULT '0', + `creatorGuid` int(10) unsigned NOT NULL DEFAULT '0', + `guildId` int(10) unsigned NOT NULL DEFAULT '0', + `type` tinyint(3) unsigned NOT NULL DEFAULT '4', + `flags` int(10) unsigned NOT NULL DEFAULT '0', + `dungeonId` int(10) NOT NULL DEFAULT '-1', + `eventTime` int(10) unsigned NOT NULL DEFAULT '0', + `title` varchar(128) NOT NULL DEFAULT '', + `description` varchar(1024) NOT NULL DEFAULT '', + PRIMARY KEY (`eventId`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- --- Dumping data for table `characters` +-- Table structure for table `calendar_invites` -- -LOCK TABLES `characters` WRITE; -/*!40000 ALTER TABLE `characters` DISABLE KEYS */; -/*!40000 ALTER TABLE `characters` ENABLE KEYS */; -UNLOCK TABLES; +DROP TABLE IF EXISTS `calendar_invites`; +CREATE TABLE `calendar_invites` ( + `inviteId` bigint(10) unsigned NOT NULL DEFAULT '0', + `eventId` bigint(10) unsigned NOT NULL DEFAULT '0', + `inviteeGuid` int(10) unsigned NOT NULL DEFAULT '0', + `senderGuid` int(3) unsigned NOT NULL DEFAULT '0', + `status` tinyint(10) unsigned NOT NULL DEFAULT '0', + `lastUpdateTime` int(10) unsigned NOT NULL DEFAULT '0', + `rank` tinyint(10) unsigned NOT NULL DEFAULT '0', + PRIMARY KEY (`inviteId`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Table structure for table `character_account_data` -- DROP TABLE IF EXISTS `character_account_data`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; CREATE TABLE `character_account_data` ( - `guid` int(11) unsigned NOT NULL default '0', - `type` int(11) unsigned NOT NULL default '0', - `time` bigint(11) unsigned NOT NULL default '0', + `guid` int(11) unsigned NOT NULL DEFAULT '0', + `type` int(11) unsigned NOT NULL DEFAULT '0', + `time` bigint(11) unsigned NOT NULL DEFAULT '0', `data` longblob NOT NULL, - PRIMARY KEY (`guid`,`type`) + PRIMARY KEY (`guid`,`type`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `character_account_data` @@ -297,12 +261,15 @@ UNLOCK TABLES; -- DROP TABLE IF EXISTS `character_achievement`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; CREATE TABLE `character_achievement` ( `guid` int(11) unsigned NOT NULL, - `achievement` int(11) unsigned NOT NULL, - `date` bigint(11) unsigned NOT NULL default '0', - PRIMARY KEY (`guid`,`achievement`) + `achievement` int(11) unsigned NOT NULL, + `date` bigint(11) unsigned NOT NULL DEFAULT '0', + PRIMARY KEY (`guid`,`achievement`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `character_achievement` @@ -318,13 +285,16 @@ UNLOCK TABLES; -- DROP TABLE IF EXISTS `character_achievement_progress`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; CREATE TABLE `character_achievement_progress` ( `guid` int(11) unsigned NOT NULL, `criteria` int(11) unsigned NOT NULL, `counter` int(11) unsigned NOT NULL, - `date` bigint(11) unsigned NOT NULL default '0', - PRIMARY KEY (`guid`,`criteria`) + `date` bigint(11) unsigned NOT NULL DEFAULT '0', + PRIMARY KEY (`guid`,`criteria`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `character_achievement_progress` @@ -340,14 +310,17 @@ UNLOCK TABLES; -- DROP TABLE IF EXISTS `character_action`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; CREATE TABLE `character_action` ( - `guid` int(11) unsigned NOT NULL default '0' COMMENT 'Global Unique Identifier', - `spec` tinyint(3) unsigned NOT NULL default '0', - `button` tinyint(3) unsigned NOT NULL default '0', - `action` int(11) unsigned NOT NULL default '0', - `type` tinyint(3) unsigned NOT NULL default '0', - PRIMARY KEY (`guid`,`spec`,`button`) + `guid` int(11) unsigned NOT NULL DEFAULT '0' COMMENT 'Global Unique Identifier', + `spec` tinyint(3) unsigned NOT NULL DEFAULT '0', + `button` tinyint(3) unsigned NOT NULL DEFAULT '0', + `action` int(11) unsigned NOT NULL DEFAULT '0', + `type` tinyint(3) unsigned NOT NULL DEFAULT '0', + PRIMARY KEY (`guid`,`spec`,`button`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Player System'; +/*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `character_action` @@ -363,24 +336,27 @@ UNLOCK TABLES; -- DROP TABLE IF EXISTS `character_aura`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; CREATE TABLE `character_aura` ( - `guid` int(11) unsigned NOT NULL default '0' COMMENT 'Global Unique Identifier', - `caster_guid` bigint(20) unsigned NOT NULL default '0' COMMENT 'Full Global Unique Identifier', - `item_guid` int(11) unsigned NOT NULL default '0', - `spell` int(11) unsigned NOT NULL default '0', - `stackcount` INT(11) UNSIGNED NOT NULL DEFAULT '1', - `remaincharges` INT(11) UNSIGNED NOT NULL DEFAULT '0', - `basepoints0` INT(11) NOT NULL DEFAULT '0', - `basepoints1` INT(11) NOT NULL DEFAULT '0', - `basepoints2` INT(11) NOT NULL DEFAULT '0', - `periodictime0` INT(11) UNSIGNED NOT NULL DEFAULT '0', - `periodictime1` INT(11) UNSIGNED NOT NULL DEFAULT '0', - `periodictime2` INT(11) UNSIGNED NOT NULL DEFAULT '0', - `maxduration` INT(11) NOT NULL DEFAULT '0', - `remaintime` INT(11) NOT NULL DEFAULT '0', - `effIndexMask` INT(11) UNSIGNED NOT NULL DEFAULT '0', + `guid` int(11) unsigned NOT NULL DEFAULT '0' COMMENT 'Global Unique Identifier', + `caster_guid` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT 'Full Global Unique Identifier', + `item_guid` int(11) unsigned NOT NULL DEFAULT '0', + `spell` int(11) unsigned NOT NULL DEFAULT '0', + `stackcount` int(11) unsigned NOT NULL DEFAULT '1', + `remaincharges` int(11) unsigned NOT NULL DEFAULT '0', + `basepoints0` int(11) NOT NULL DEFAULT '0', + `basepoints1` int(11) NOT NULL DEFAULT '0', + `basepoints2` int(11) NOT NULL DEFAULT '0', + `periodictime0` int(11) unsigned NOT NULL DEFAULT '0', + `periodictime1` int(11) unsigned NOT NULL DEFAULT '0', + `periodictime2` int(11) unsigned NOT NULL DEFAULT '0', + `maxduration` int(11) NOT NULL DEFAULT '0', + `remaintime` int(11) NOT NULL DEFAULT '0', + `effIndexMask` int(11) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`guid`,`caster_guid`,`item_guid`,`spell`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Player System'; +/*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `character_aura` @@ -396,20 +372,23 @@ UNLOCK TABLES; -- DROP TABLE IF EXISTS `character_battleground_data`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; CREATE TABLE `character_battleground_data` ( - `guid` int(11) unsigned NOT NULL default '0' COMMENT 'Global Unique Identifier', - `instance_id` int(11) unsigned NOT NULL default '0', - `team` int(11) unsigned NOT NULL default '0', - `join_x` float NOT NULL default '0', - `join_y` float NOT NULL default '0', - `join_z` float NOT NULL default '0', - `join_o` float NOT NULL default '0', - `join_map` int(11) NOT NULL default '0', - `taxi_start` int(11) NOT NULL default '0', - `taxi_end` int(11) NOT NULL default '0', - `mount_spell` int(11) NOT NULL default '0', - PRIMARY KEY (`guid`) + `guid` int(11) unsigned NOT NULL DEFAULT '0' COMMENT 'Global Unique Identifier', + `instance_id` int(11) unsigned NOT NULL DEFAULT '0', + `team` int(11) unsigned NOT NULL DEFAULT '0', + `join_x` float NOT NULL DEFAULT '0', + `join_y` float NOT NULL DEFAULT '0', + `join_z` float NOT NULL DEFAULT '0', + `join_o` float NOT NULL DEFAULT '0', + `join_map` int(11) NOT NULL DEFAULT '0', + `taxi_start` int(11) NOT NULL DEFAULT '0', + `taxi_end` int(11) NOT NULL DEFAULT '0', + `mount_spell` int(11) NOT NULL DEFAULT '0', + PRIMARY KEY (`guid`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Player System'; +/*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `character_battleground_data` @@ -425,6 +404,8 @@ UNLOCK TABLES; -- DROP TABLE IF EXISTS `character_currencies`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; CREATE TABLE `character_currencies` ( `guid` int(11) unsigned NOT NULL DEFAULT '0', `id` smallint(5) unsigned NOT NULL DEFAULT '0', @@ -434,6 +415,7 @@ CREATE TABLE `character_currencies` ( `flags` tinyint(2) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`guid`,`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `character_currencies` @@ -444,20 +426,46 @@ LOCK TABLES `character_currencies` WRITE; /*!40000 ALTER TABLE `character_currencies` ENABLE KEYS */; UNLOCK TABLES; +-- +-- Table structure for table `character_db_version` +-- + +DROP TABLE IF EXISTS `character_db_version`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `character_db_version` ( + `required_12447_02_characters_calendar_invites` bit(1) default NULL +) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Last applied sql update to DB'; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `character_db_version` +-- + +LOCK TABLES `character_db_version` WRITE; +/*!40000 ALTER TABLE `character_db_version` DISABLE KEYS */; +INSERT INTO `character_db_version` (`required_12447_02_characters_calendar_invites`) VALUES +(NULL); +/*!40000 ALTER TABLE `character_db_version` ENABLE KEYS */; +UNLOCK TABLES; + -- -- Table structure for table `character_declinedname` -- DROP TABLE IF EXISTS `character_declinedname`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; CREATE TABLE `character_declinedname` ( - `guid` int(11) unsigned NOT NULL default '0' COMMENT 'Global Unique Identifier', - `genitive` varchar(15) NOT NULL default '', - `dative` varchar(15) NOT NULL default '', - `accusative` varchar(15) NOT NULL default '', - `instrumental` varchar(15) NOT NULL default '', - `prepositional` varchar(15) NOT NULL default '', - PRIMARY KEY (`guid`) + `guid` int(11) unsigned NOT NULL DEFAULT '0' COMMENT 'Global Unique Identifier', + `genitive` varchar(15) NOT NULL DEFAULT '', + `dative` varchar(15) NOT NULL DEFAULT '', + `accusative` varchar(15) NOT NULL DEFAULT '', + `instrumental` varchar(15) NOT NULL DEFAULT '', + `prepositional` varchar(15) NOT NULL DEFAULT '', + PRIMARY KEY (`guid`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC; +/*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `character_declinedname` @@ -473,36 +481,39 @@ UNLOCK TABLES; -- DROP TABLE IF EXISTS `character_equipmentsets`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; CREATE TABLE `character_equipmentsets` ( - `guid` int(11) NOT NULL default '0', - `setguid` bigint(20) unsigned NOT NULL auto_increment, - `setindex` tinyint(4) NOT NULL default '0', + `guid` int(11) NOT NULL DEFAULT '0', + `setguid` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `setindex` tinyint(4) NOT NULL DEFAULT '0', `name` varchar(100) NOT NULL, `iconname` varchar(100) NOT NULL, - `ignore_mask` int(11) unsigned NOT NULL default '0', - `item0` int(11) unsigned NOT NULL default '0', - `item1` int(11) unsigned NOT NULL default '0', - `item2` int(11) unsigned NOT NULL default '0', - `item3` int(11) unsigned NOT NULL default '0', - `item4` int(11) unsigned NOT NULL default '0', - `item5` int(11) unsigned NOT NULL default '0', - `item6` int(11) unsigned NOT NULL default '0', - `item7` int(11) unsigned NOT NULL default '0', - `item8` int(11) unsigned NOT NULL default '0', - `item9` int(11) unsigned NOT NULL default '0', - `item10` int(11) unsigned NOT NULL default '0', - `item11` int(11) unsigned NOT NULL default '0', - `item12` int(11) unsigned NOT NULL default '0', - `item13` int(11) unsigned NOT NULL default '0', - `item14` int(11) unsigned NOT NULL default '0', - `item15` int(11) unsigned NOT NULL default '0', - `item16` int(11) unsigned NOT NULL default '0', - `item17` int(11) unsigned NOT NULL default '0', - `item18` int(11) unsigned NOT NULL default '0', - PRIMARY KEY (`setguid`), + `ignore_mask` int(11) unsigned NOT NULL DEFAULT '0', + `item0` int(11) unsigned NOT NULL DEFAULT '0', + `item1` int(11) unsigned NOT NULL DEFAULT '0', + `item2` int(11) unsigned NOT NULL DEFAULT '0', + `item3` int(11) unsigned NOT NULL DEFAULT '0', + `item4` int(11) unsigned NOT NULL DEFAULT '0', + `item5` int(11) unsigned NOT NULL DEFAULT '0', + `item6` int(11) unsigned NOT NULL DEFAULT '0', + `item7` int(11) unsigned NOT NULL DEFAULT '0', + `item8` int(11) unsigned NOT NULL DEFAULT '0', + `item9` int(11) unsigned NOT NULL DEFAULT '0', + `item10` int(11) unsigned NOT NULL DEFAULT '0', + `item11` int(11) unsigned NOT NULL DEFAULT '0', + `item12` int(11) unsigned NOT NULL DEFAULT '0', + `item13` int(11) unsigned NOT NULL DEFAULT '0', + `item14` int(11) unsigned NOT NULL DEFAULT '0', + `item15` int(11) unsigned NOT NULL DEFAULT '0', + `item16` int(11) unsigned NOT NULL DEFAULT '0', + `item17` int(11) unsigned NOT NULL DEFAULT '0', + `item18` int(11) unsigned NOT NULL DEFAULT '0', + PRIMARY KEY (`setguid`), UNIQUE KEY `idx_set` (`guid`,`setguid`,`setindex`), - INDEX `Idx_setindex` (`setindex`) + KEY `Idx_setindex` (`setindex`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `character_equipmentsets` @@ -518,14 +529,17 @@ UNLOCK TABLES; -- DROP TABLE IF EXISTS `character_gifts`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; CREATE TABLE `character_gifts` ( - `guid` int(20) unsigned NOT NULL default '0', - `item_guid` int(11) unsigned NOT NULL default '0', - `entry` int(20) unsigned NOT NULL default '0', - `flags` int(20) unsigned NOT NULL default '0', - PRIMARY KEY (`item_guid`), + `guid` int(20) unsigned NOT NULL DEFAULT '0', + `item_guid` int(11) unsigned NOT NULL DEFAULT '0', + `entry` int(20) unsigned NOT NULL DEFAULT '0', + `flags` int(20) unsigned NOT NULL DEFAULT '0', + PRIMARY KEY (`item_guid`), KEY `idx_guid` (`guid`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `character_gifts` @@ -541,6 +555,8 @@ UNLOCK TABLES; -- DROP TABLE IF EXISTS `character_glyphs`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; CREATE TABLE `character_glyphs` ( `guid` int(11) unsigned NOT NULL, `spec` tinyint(3) unsigned NOT NULL DEFAULT '0', @@ -548,6 +564,7 @@ CREATE TABLE `character_glyphs` ( `glyph` int(11) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`guid`,`spec`,`slot`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `character_glyphs` @@ -563,15 +580,18 @@ UNLOCK TABLES; -- DROP TABLE IF EXISTS `character_homebind`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; CREATE TABLE `character_homebind` ( - `guid` int(11) unsigned NOT NULL default '0' COMMENT 'Global Unique Identifier', - `map` int(11) unsigned NOT NULL default '0' COMMENT 'Map Identifier', - `zone` int(11) unsigned NOT NULL default '0' COMMENT 'Zone Identifier', - `position_x` float NOT NULL default '0', - `position_y` float NOT NULL default '0', - `position_z` float NOT NULL default '0', - PRIMARY KEY (`guid`) + `guid` int(11) unsigned NOT NULL DEFAULT '0' COMMENT 'Global Unique Identifier', + `map` int(11) unsigned NOT NULL DEFAULT '0' COMMENT 'Map Identifier', + `zone` int(11) unsigned NOT NULL DEFAULT '0' COMMENT 'Zone Identifier', + `position_x` float NOT NULL DEFAULT '0', + `position_y` float NOT NULL DEFAULT '0', + `position_z` float NOT NULL DEFAULT '0', + PRIMARY KEY (`guid`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Player System'; +/*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `character_homebind` @@ -587,13 +607,16 @@ UNLOCK TABLES; -- DROP TABLE IF EXISTS `character_instance`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; CREATE TABLE `character_instance` ( - `guid` int(11) unsigned NOT NULL default '0', - `instance` int(11) unsigned NOT NULL default '0', - `permanent` tinyint(1) unsigned NOT NULL default '0', - PRIMARY KEY (`guid`,`instance`), + `guid` int(11) unsigned NOT NULL DEFAULT '0', + `instance` int(11) unsigned NOT NULL DEFAULT '0', + `permanent` tinyint(1) unsigned NOT NULL DEFAULT '0', + PRIMARY KEY (`guid`,`instance`), KEY `instance` (`instance`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `character_instance` @@ -609,15 +632,18 @@ UNLOCK TABLES; -- DROP TABLE IF EXISTS `character_inventory`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; CREATE TABLE `character_inventory` ( - `guid` int(11) unsigned NOT NULL default '0' COMMENT 'Global Unique Identifier', - `bag` int(11) unsigned NOT NULL default '0', - `slot` tinyint(3) unsigned NOT NULL default '0', - `item` int(11) unsigned NOT NULL default '0' COMMENT 'Item Global Unique Identifier', - `item_template` int(11) unsigned NOT NULL default '0' COMMENT 'Item Identifier', - PRIMARY KEY (`item`), + `guid` int(11) unsigned NOT NULL DEFAULT '0' COMMENT 'Global Unique Identifier', + `bag` int(11) unsigned NOT NULL DEFAULT '0', + `slot` tinyint(3) unsigned NOT NULL DEFAULT '0', + `item` int(11) unsigned NOT NULL DEFAULT '0' COMMENT 'Item Global Unique Identifier', + `item_template` int(11) unsigned NOT NULL DEFAULT '0' COMMENT 'Item Identifier', + PRIMARY KEY (`item`), KEY `idx_guid` (`guid`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Player System'; +/*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `character_inventory` @@ -633,28 +659,31 @@ UNLOCK TABLES; -- DROP TABLE IF EXISTS `character_pet`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; CREATE TABLE `character_pet` ( - `id` int(11) unsigned NOT NULL default '0', - `entry` int(11) unsigned NOT NULL default '0', - `owner` int(11) unsigned NOT NULL default '0', - `modelid` int(11) unsigned default '0', - `CreatedBySpell` int(11) unsigned NOT NULL default '0', - `PetType` tinyint(3) unsigned NOT NULL default '0', - `level` int(11) unsigned NOT NULL default '1', - `exp` int(11) unsigned NOT NULL default '0', - `Reactstate` tinyint(1) unsigned NOT NULL default '0', - `name` varchar(100) default 'Pet', - `renamed` tinyint(1) unsigned NOT NULL default '0', - `slot` int(11) unsigned NOT NULL default '0', - `curhealth` int(11) unsigned NOT NULL default '1', - `curmana` int(11) unsigned NOT NULL default '0', - `savetime` bigint(20) unsigned NOT NULL default '0', - `resettalents_cost` int(11) unsigned NOT NULL default '0', - `resettalents_time` bigint(20) unsigned NOT NULL default '0', + `id` int(11) unsigned NOT NULL DEFAULT '0', + `entry` int(11) unsigned NOT NULL DEFAULT '0', + `owner` int(11) unsigned NOT NULL DEFAULT '0', + `modelid` int(11) unsigned DEFAULT '0', + `CreatedBySpell` int(11) unsigned NOT NULL DEFAULT '0', + `PetType` tinyint(3) unsigned NOT NULL DEFAULT '0', + `level` int(11) unsigned NOT NULL DEFAULT '1', + `exp` int(11) unsigned NOT NULL DEFAULT '0', + `Reactstate` tinyint(1) unsigned NOT NULL DEFAULT '0', + `name` varchar(100) DEFAULT 'Pet', + `renamed` tinyint(1) unsigned NOT NULL DEFAULT '0', + `slot` int(11) unsigned NOT NULL DEFAULT '0', + `curhealth` int(11) unsigned NOT NULL DEFAULT '1', + `curmana` int(11) unsigned NOT NULL DEFAULT '0', + `savetime` bigint(20) unsigned NOT NULL DEFAULT '0', + `resettalents_cost` int(11) unsigned NOT NULL DEFAULT '0', + `resettalents_time` bigint(20) unsigned NOT NULL DEFAULT '0', `abdata` longtext, - PRIMARY KEY (`id`), + PRIMARY KEY (`id`), KEY `owner` (`owner`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Pet System'; +/*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `character_pet` @@ -670,17 +699,20 @@ UNLOCK TABLES; -- DROP TABLE IF EXISTS `character_pet_declinedname`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; CREATE TABLE `character_pet_declinedname` ( - `id` int(11) unsigned NOT NULL default '0', - `owner` int(11) unsigned NOT NULL default '0', - `genitive` varchar(12) NOT NULL default '', - `dative` varchar(12) NOT NULL default '', - `accusative` varchar(12) NOT NULL default '', - `instrumental` varchar(12) NOT NULL default '', - `prepositional` varchar(12) NOT NULL default '', - PRIMARY KEY (`id`), - KEY owner_key (`owner`) + `id` int(11) unsigned NOT NULL DEFAULT '0', + `owner` int(11) unsigned NOT NULL DEFAULT '0', + `genitive` varchar(12) NOT NULL DEFAULT '', + `dative` varchar(12) NOT NULL DEFAULT '', + `accusative` varchar(12) NOT NULL DEFAULT '', + `instrumental` varchar(12) NOT NULL DEFAULT '', + `prepositional` varchar(12) NOT NULL DEFAULT '', + PRIMARY KEY (`id`), + KEY `owner_key` (`owner`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC; +/*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `character_pet_declinedname` @@ -696,12 +728,15 @@ UNLOCK TABLES; -- DROP TABLE IF EXISTS `character_phase_data`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; CREATE TABLE `character_phase_data` ( `guid` int(11) NOT NULL, `map` smallint(6) NOT NULL, `phase` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`guid`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC; +/*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `character_phase_data` @@ -717,25 +752,28 @@ UNLOCK TABLES; -- DROP TABLE IF EXISTS `character_queststatus`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; CREATE TABLE `character_queststatus` ( - `guid` int(11) unsigned NOT NULL default '0' COMMENT 'Global Unique Identifier', - `quest` int(11) unsigned NOT NULL default '0' COMMENT 'Quest Identifier', - `status` int(11) unsigned NOT NULL default '0', - `rewarded` tinyint(1) unsigned NOT NULL default '0', - `explored` tinyint(1) unsigned NOT NULL default '0', - `timer` bigint(20) unsigned NOT NULL default '0', - `mobcount1` int(11) unsigned NOT NULL default '0', - `mobcount2` int(11) unsigned NOT NULL default '0', - `mobcount3` int(11) unsigned NOT NULL default '0', - `mobcount4` int(11) unsigned NOT NULL default '0', - `itemcount1` int(11) unsigned NOT NULL default '0', - `itemcount2` int(11) unsigned NOT NULL default '0', - `itemcount3` int(11) unsigned NOT NULL default '0', - `itemcount4` int(11) unsigned NOT NULL default '0', - `itemcount5` int(11) unsigned NOT NULL default '0', - `itemcount6` int(11) unsigned NOT NULL default '0', - PRIMARY KEY (`guid`,`quest`) + `guid` int(11) unsigned NOT NULL DEFAULT '0' COMMENT 'Global Unique Identifier', + `quest` int(11) unsigned NOT NULL DEFAULT '0' COMMENT 'Quest Identifier', + `status` int(11) unsigned NOT NULL DEFAULT '0', + `rewarded` tinyint(1) unsigned NOT NULL DEFAULT '0', + `explored` tinyint(1) unsigned NOT NULL DEFAULT '0', + `timer` bigint(20) unsigned NOT NULL DEFAULT '0', + `mobcount1` int(11) unsigned NOT NULL DEFAULT '0', + `mobcount2` int(11) unsigned NOT NULL DEFAULT '0', + `mobcount3` int(11) unsigned NOT NULL DEFAULT '0', + `mobcount4` int(11) unsigned NOT NULL DEFAULT '0', + `itemcount1` int(11) unsigned NOT NULL DEFAULT '0', + `itemcount2` int(11) unsigned NOT NULL DEFAULT '0', + `itemcount3` int(11) unsigned NOT NULL DEFAULT '0', + `itemcount4` int(11) unsigned NOT NULL DEFAULT '0', + `itemcount5` int(11) unsigned NOT NULL DEFAULT '0', + `itemcount6` int(11) unsigned NOT NULL DEFAULT '0', + PRIMARY KEY (`guid`,`quest`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Player System'; +/*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `character_queststatus` @@ -751,12 +789,15 @@ UNLOCK TABLES; -- DROP TABLE IF EXISTS `character_queststatus_daily`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; CREATE TABLE `character_queststatus_daily` ( - `guid` int(11) unsigned NOT NULL default '0' COMMENT 'Global Unique Identifier', - `quest` int(11) unsigned NOT NULL default '0' COMMENT 'Quest Identifier', - PRIMARY KEY (`guid`,`quest`), + `guid` int(11) unsigned NOT NULL DEFAULT '0' COMMENT 'Global Unique Identifier', + `quest` int(11) unsigned NOT NULL DEFAULT '0' COMMENT 'Quest Identifier', + PRIMARY KEY (`guid`,`quest`), KEY `idx_guid` (`guid`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Player System'; +/*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `character_queststatus_daily` @@ -772,12 +813,15 @@ UNLOCK TABLES; -- DROP TABLE IF EXISTS `character_queststatus_monthly`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; CREATE TABLE `character_queststatus_monthly` ( - `guid` int(11) unsigned NOT NULL default '0' COMMENT 'Global Unique Identifier', - `quest` int(11) unsigned NOT NULL default '0' COMMENT 'Quest Identifier', - PRIMARY KEY (`guid`,`quest`), + `guid` int(11) unsigned NOT NULL DEFAULT '0' COMMENT 'Global Unique Identifier', + `quest` int(11) unsigned NOT NULL DEFAULT '0' COMMENT 'Quest Identifier', + PRIMARY KEY (`guid`,`quest`), KEY `idx_guid` (`guid`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Player System'; +/*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `character_queststatus_monthly` @@ -793,12 +837,15 @@ UNLOCK TABLES; -- DROP TABLE IF EXISTS `character_queststatus_weekly`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; CREATE TABLE `character_queststatus_weekly` ( - `guid` int(11) unsigned NOT NULL default '0' COMMENT 'Global Unique Identifier', - `quest` int(11) unsigned NOT NULL default '0' COMMENT 'Quest Identifier', - PRIMARY KEY (`guid`,`quest`), + `guid` int(11) unsigned NOT NULL DEFAULT '0' COMMENT 'Global Unique Identifier', + `quest` int(11) unsigned NOT NULL DEFAULT '0' COMMENT 'Quest Identifier', + PRIMARY KEY (`guid`,`quest`), KEY `idx_guid` (`guid`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Player System'; +/*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `character_queststatus_weekly` @@ -814,13 +861,16 @@ UNLOCK TABLES; -- DROP TABLE IF EXISTS `character_reputation`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; CREATE TABLE `character_reputation` ( - `guid` int(11) unsigned NOT NULL default '0' COMMENT 'Global Unique Identifier', - `faction` int(11) unsigned NOT NULL default '0', - `standing` int(11) NOT NULL default '0', - `flags` int(11) NOT NULL default '0', - PRIMARY KEY (`guid`,`faction`) + `guid` int(11) unsigned NOT NULL DEFAULT '0' COMMENT 'Global Unique Identifier', + `faction` int(11) unsigned NOT NULL DEFAULT '0', + `standing` int(11) NOT NULL DEFAULT '0', + `flags` int(11) NOT NULL DEFAULT '0', + PRIMARY KEY (`guid`,`faction`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Player System'; +/*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `character_reputation` @@ -836,13 +886,16 @@ UNLOCK TABLES; -- DROP TABLE IF EXISTS `character_skills`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; CREATE TABLE `character_skills` ( `guid` int(11) unsigned NOT NULL COMMENT 'Global Unique Identifier', `skill` mediumint(9) unsigned NOT NULL, `value` mediumint(9) unsigned NOT NULL, `max` mediumint(9) unsigned NOT NULL, - PRIMARY KEY (`guid`,`skill`) + PRIMARY KEY (`guid`,`skill`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Player System'; +/*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `character_skills` @@ -858,17 +911,20 @@ UNLOCK TABLES; -- DROP TABLE IF EXISTS `character_social`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; CREATE TABLE `character_social` ( - `guid` int(11) unsigned NOT NULL default '0' COMMENT 'Character Global Unique Identifier', - `friend` int(11) unsigned NOT NULL default '0' COMMENT 'Friend Global Unique Identifier', - `flags` tinyint(1) unsigned NOT NULL default '0' COMMENT 'Friend Flags', + `guid` int(11) unsigned NOT NULL DEFAULT '0' COMMENT 'Character Global Unique Identifier', + `friend` int(11) unsigned NOT NULL DEFAULT '0' COMMENT 'Friend Global Unique Identifier', + `flags` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT 'Friend Flags', `note` varchar(48) NOT NULL DEFAULT '' COMMENT 'Friend Note', - PRIMARY KEY (`guid`,`friend`,`flags`), + PRIMARY KEY (`guid`,`friend`,`flags`), KEY `guid` (`guid`), KEY `friend` (`friend`), KEY `guid_flags` (`guid`,`flags`), KEY `friend_flags` (`friend`,`flags`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Player System'; +/*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `character_social` @@ -884,14 +940,17 @@ UNLOCK TABLES; -- DROP TABLE IF EXISTS `character_spell`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; CREATE TABLE `character_spell` ( - `guid` int(11) unsigned NOT NULL default '0' COMMENT 'Global Unique Identifier', - `spell` int(11) unsigned NOT NULL default '0' COMMENT 'Spell Identifier', - `active` tinyint(3) unsigned NOT NULL default '1', - `disabled` tinyint(3) unsigned NOT NULL default '0', - PRIMARY KEY (`guid`,`spell`), + `guid` int(11) unsigned NOT NULL DEFAULT '0' COMMENT 'Global Unique Identifier', + `spell` int(11) unsigned NOT NULL DEFAULT '0' COMMENT 'Spell Identifier', + `active` tinyint(3) unsigned NOT NULL DEFAULT '1', + `disabled` tinyint(3) unsigned NOT NULL DEFAULT '0', + PRIMARY KEY (`guid`,`spell`), KEY `Idx_spell` (`spell`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Player System'; +/*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `character_spell` @@ -907,13 +966,16 @@ UNLOCK TABLES; -- DROP TABLE IF EXISTS `character_spell_cooldown`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; CREATE TABLE `character_spell_cooldown` ( - `guid` int(11) unsigned NOT NULL default '0' COMMENT 'Global Unique Identifier, Low part', - `spell` int(11) unsigned NOT NULL default '0' COMMENT 'Spell Identifier', - `item` int(11) unsigned NOT NULL default '0' COMMENT 'Item Identifier', - `time` bigint(20) unsigned NOT NULL default '0', - PRIMARY KEY (`guid`,`spell`) + `guid` int(11) unsigned NOT NULL DEFAULT '0' COMMENT 'Global Unique Identifier, Low part', + `spell` int(11) unsigned NOT NULL DEFAULT '0' COMMENT 'Spell Identifier', + `item` int(11) unsigned NOT NULL DEFAULT '0' COMMENT 'Item Identifier', + `time` bigint(20) unsigned NOT NULL DEFAULT '0', + PRIMARY KEY (`guid`,`spell`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `character_spell_cooldown` @@ -929,37 +991,40 @@ UNLOCK TABLES; -- DROP TABLE IF EXISTS `character_stats`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; CREATE TABLE `character_stats` ( - `guid` int(11) unsigned NOT NULL default '0' COMMENT 'Global Unique Identifier, Low part', - `maxhealth` int(10) UNSIGNED NOT NULL default '0', - `maxpower1` int(10) UNSIGNED NOT NULL default '0', - `maxpower2` int(10) UNSIGNED NOT NULL default '0', - `maxpower3` int(10) UNSIGNED NOT NULL default '0', - `maxpower4` int(10) UNSIGNED NOT NULL default '0', - `maxpower5` int(10) UNSIGNED NOT NULL default '0', - `strength` int(10) UNSIGNED NOT NULL default '0', - `agility` int(10) UNSIGNED NOT NULL default '0', - `stamina` int(10) UNSIGNED NOT NULL default '0', - `intellect` int(10) UNSIGNED NOT NULL default '0', - `spirit` int(10) UNSIGNED NOT NULL default '0', - `armor` int(10) UNSIGNED NOT NULL default '0', - `resHoly` int(10) UNSIGNED NOT NULL default '0', - `resFire` int(10) UNSIGNED NOT NULL default '0', - `resNature` int(10) UNSIGNED NOT NULL default '0', - `resFrost` int(10) UNSIGNED NOT NULL default '0', - `resShadow` int(10) UNSIGNED NOT NULL default '0', - `resArcane` int(10) UNSIGNED NOT NULL default '0', - `blockPct` float UNSIGNED NOT NULL default '0', - `dodgePct` float UNSIGNED NOT NULL default '0', - `parryPct` float UNSIGNED NOT NULL default '0', - `critPct` float UNSIGNED NOT NULL default '0', - `rangedCritPct` float UNSIGNED NOT NULL default '0', - `spellCritPct` float UNSIGNED NOT NULL default '0', - `attackPower` int(10) UNSIGNED NOT NULL default '0', - `rangedAttackPower` int(10) UNSIGNED NOT NULL default '0', - `spellPower` int(10) UNSIGNED NOT NULL default '0', - PRIMARY KEY (`guid`) + `guid` int(11) unsigned NOT NULL DEFAULT '0' COMMENT 'Global Unique Identifier, Low part', + `maxhealth` int(10) unsigned NOT NULL DEFAULT '0', + `maxpower1` int(10) unsigned NOT NULL DEFAULT '0', + `maxpower2` int(10) unsigned NOT NULL DEFAULT '0', + `maxpower3` int(10) unsigned NOT NULL DEFAULT '0', + `maxpower4` int(10) unsigned NOT NULL DEFAULT '0', + `maxpower5` int(10) unsigned NOT NULL DEFAULT '0', + `strength` int(10) unsigned NOT NULL DEFAULT '0', + `agility` int(10) unsigned NOT NULL DEFAULT '0', + `stamina` int(10) unsigned NOT NULL DEFAULT '0', + `intellect` int(10) unsigned NOT NULL DEFAULT '0', + `spirit` int(10) unsigned NOT NULL DEFAULT '0', + `armor` int(10) unsigned NOT NULL DEFAULT '0', + `resHoly` int(10) unsigned NOT NULL DEFAULT '0', + `resFire` int(10) unsigned NOT NULL DEFAULT '0', + `resNature` int(10) unsigned NOT NULL DEFAULT '0', + `resFrost` int(10) unsigned NOT NULL DEFAULT '0', + `resShadow` int(10) unsigned NOT NULL DEFAULT '0', + `resArcane` int(10) unsigned NOT NULL DEFAULT '0', + `blockPct` float unsigned NOT NULL DEFAULT '0', + `dodgePct` float unsigned NOT NULL DEFAULT '0', + `parryPct` float unsigned NOT NULL DEFAULT '0', + `critPct` float unsigned NOT NULL DEFAULT '0', + `rangedCritPct` float unsigned NOT NULL DEFAULT '0', + `spellCritPct` float unsigned NOT NULL DEFAULT '0', + `attackPower` int(10) unsigned NOT NULL DEFAULT '0', + `rangedAttackPower` int(10) unsigned NOT NULL DEFAULT '0', + `spellPower` int(10) unsigned NOT NULL DEFAULT '0', + PRIMARY KEY (`guid`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `character_stats` @@ -975,16 +1040,19 @@ UNLOCK TABLES; -- DROP TABLE IF EXISTS `character_talent`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; CREATE TABLE `character_talent` ( `guid` int(11) unsigned NOT NULL, `talent_id` int(11) unsigned NOT NULL, `current_rank` tinyint(3) unsigned NOT NULL DEFAULT '0', `spec` tinyint(3) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`guid`,`talent_id`,`spec`), - KEY guid_key (`guid`), - KEY talent_key (`talent_id`), - KEY spec_key (`spec`) + KEY `guid_key` (`guid`), + KEY `talent_key` (`talent_id`), + KEY `spec_key` (`spec`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `character_talent` @@ -1000,14 +1068,17 @@ UNLOCK TABLES; -- DROP TABLE IF EXISTS `character_ticket`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; CREATE TABLE `character_ticket` ( - `ticket_id` int(11) unsigned NOT NULL auto_increment, - `guid` int(11) unsigned NOT NULL default '0', + `ticket_id` int(11) unsigned NOT NULL AUTO_INCREMENT, + `guid` int(11) unsigned NOT NULL DEFAULT '0', `ticket_text` text, `response_text` text, - `ticket_lastchange` TIMESTAMP ON UPDATE CURRENT_TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, - PRIMARY KEY (`ticket_id`) + `ticket_lastchange` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, + PRIMARY KEY (`ticket_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Player System'; +/*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `character_ticket` @@ -1023,18 +1094,21 @@ UNLOCK TABLES; -- DROP TABLE IF EXISTS `character_tutorial`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; CREATE TABLE `character_tutorial` ( - `account` bigint(20) unsigned NOT NULL auto_increment COMMENT 'Account Identifier', - `tut0` int(11) unsigned NOT NULL default '0', - `tut1` int(11) unsigned NOT NULL default '0', - `tut2` int(11) unsigned NOT NULL default '0', - `tut3` int(11) unsigned NOT NULL default '0', - `tut4` int(11) unsigned NOT NULL default '0', - `tut5` int(11) unsigned NOT NULL default '0', - `tut6` int(11) unsigned NOT NULL default '0', - `tut7` int(11) unsigned NOT NULL default '0', - PRIMARY KEY (`account`) + `account` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Account Identifier', + `tut0` int(11) unsigned NOT NULL DEFAULT '0', + `tut1` int(11) unsigned NOT NULL DEFAULT '0', + `tut2` int(11) unsigned NOT NULL DEFAULT '0', + `tut3` int(11) unsigned NOT NULL DEFAULT '0', + `tut4` int(11) unsigned NOT NULL DEFAULT '0', + `tut5` int(11) unsigned NOT NULL DEFAULT '0', + `tut6` int(11) unsigned NOT NULL DEFAULT '0', + `tut7` int(11) unsigned NOT NULL DEFAULT '0', + PRIMARY KEY (`account`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Player System'; +/*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `character_tutorial` @@ -1045,29 +1119,118 @@ LOCK TABLES `character_tutorial` WRITE; /*!40000 ALTER TABLE `character_tutorial` ENABLE KEYS */; UNLOCK TABLES; +-- +-- Table structure for table `characters` +-- + +DROP TABLE IF EXISTS `characters`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `characters` ( + `guid` int(11) unsigned NOT NULL DEFAULT '0' COMMENT 'Global Unique Identifier', + `account` int(11) unsigned NOT NULL DEFAULT '0' COMMENT 'Account Identifier', + `name` varchar(12) NOT NULL DEFAULT '', + `race` tinyint(3) unsigned NOT NULL DEFAULT '0', + `class` tinyint(3) unsigned NOT NULL DEFAULT '0', + `gender` tinyint(3) unsigned NOT NULL DEFAULT '0', + `level` tinyint(3) unsigned NOT NULL DEFAULT '0', + `xp` int(10) unsigned NOT NULL DEFAULT '0', + `money` bigint(40) unsigned NOT NULL DEFAULT '0', + `playerBytes` int(10) unsigned NOT NULL DEFAULT '0', + `playerBytes2` int(10) unsigned NOT NULL DEFAULT '0', + `playerFlags` int(10) unsigned NOT NULL DEFAULT '0', + `position_x` float NOT NULL DEFAULT '0', + `position_y` float NOT NULL DEFAULT '0', + `position_z` float NOT NULL DEFAULT '0', + `map` int(11) unsigned NOT NULL DEFAULT '0' COMMENT 'Map Identifier', + `dungeon_difficulty` tinyint(1) unsigned NOT NULL DEFAULT '0', + `orientation` float NOT NULL DEFAULT '0', + `taximask` longtext, + `online` tinyint(3) unsigned NOT NULL DEFAULT '0', + `cinematic` tinyint(3) unsigned NOT NULL DEFAULT '0', + `totaltime` int(11) unsigned NOT NULL DEFAULT '0', + `leveltime` int(11) unsigned NOT NULL DEFAULT '0', + `logout_time` bigint(20) unsigned NOT NULL DEFAULT '0', + `is_logout_resting` tinyint(3) unsigned NOT NULL DEFAULT '0', + `rest_bonus` float NOT NULL DEFAULT '0', + `resettalents_cost` int(11) unsigned NOT NULL DEFAULT '0', + `resettalents_time` bigint(20) unsigned NOT NULL DEFAULT '0', + `primary_trees` varchar(10) NOT NULL DEFAULT '0 0 ', + `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` bigint(20) unsigned NOT NULL DEFAULT '0', + `extra_flags` int(11) unsigned NOT NULL DEFAULT '0', + `stable_slots` tinyint(1) unsigned NOT NULL DEFAULT '0', + `at_login` int(11) unsigned NOT NULL DEFAULT '0', + `zone` int(11) unsigned NOT NULL DEFAULT '0', + `death_expire_time` bigint(20) unsigned NOT NULL DEFAULT '0', + `taxi_path` text, + `totalKills` int(10) unsigned NOT NULL DEFAULT '0', + `todayKills` smallint(5) unsigned NOT NULL DEFAULT '0', + `yesterdayKills` smallint(5) unsigned NOT NULL DEFAULT '0', + `chosenTitle` int(10) unsigned NOT NULL DEFAULT '0', + `watchedFaction` int(10) unsigned NOT NULL DEFAULT '0', + `drunk` smallint(5) unsigned NOT NULL DEFAULT '0', + `health` int(10) unsigned NOT NULL DEFAULT '0', + `power1` int(10) unsigned NOT NULL DEFAULT '0', + `power2` int(10) unsigned NOT NULL DEFAULT '0', + `power3` int(10) unsigned NOT NULL DEFAULT '0', + `power4` int(10) unsigned NOT NULL DEFAULT '0', + `power5` int(10) unsigned NOT NULL DEFAULT '0', + `specCount` tinyint(3) unsigned NOT NULL DEFAULT '1', + `activeSpec` tinyint(3) unsigned NOT NULL DEFAULT '0', + `exploredZones` longtext, + `equipmentCache` longtext, + `knownTitles` longtext, + `actionBars` tinyint(3) unsigned NOT NULL DEFAULT '0', + `slot` tinyint(3) unsigned NOT NULL DEFAULT '255', + `deleteInfos_Account` int(11) unsigned DEFAULT NULL, + `deleteInfos_Name` varchar(12) DEFAULT NULL, + `deleteDate` bigint(20) unsigned DEFAULT NULL, + PRIMARY KEY (`guid`), + KEY `idx_account` (`account`), + KEY `idx_online` (`online`), + KEY `idx_name` (`name`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Player System'; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `characters` +-- + +LOCK TABLES `characters` WRITE; +/*!40000 ALTER TABLE `characters` DISABLE KEYS */; +/*!40000 ALTER TABLE `characters` ENABLE KEYS */; +UNLOCK TABLES; + -- -- Table structure for table `corpse` -- DROP TABLE IF EXISTS `corpse`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; CREATE TABLE `corpse` ( - `guid` int(11) unsigned NOT NULL default '0' COMMENT 'Global Unique Identifier', - `player` int(11) unsigned NOT NULL default '0' COMMENT 'Character Global Unique Identifier', - `position_x` float NOT NULL default '0', - `position_y` float NOT NULL default '0', - `position_z` float NOT NULL default '0', - `orientation` float NOT NULL default '0', - `map` int(11) unsigned NOT NULL default '0' COMMENT 'Map Identifier', - `phaseMask` smallint(5) unsigned NOT NULL default '1', - `time` bigint(20) unsigned NOT NULL default '0', - `corpse_type` tinyint(3) unsigned NOT NULL default '0', - `instance` int(11) unsigned NOT NULL default '0', - PRIMARY KEY (`guid`), + `guid` int(11) unsigned NOT NULL DEFAULT '0' COMMENT 'Global Unique Identifier', + `player` int(11) unsigned NOT NULL DEFAULT '0' COMMENT 'Character Global Unique Identifier', + `position_x` float NOT NULL DEFAULT '0', + `position_y` float NOT NULL DEFAULT '0', + `position_z` float NOT NULL DEFAULT '0', + `orientation` float NOT NULL DEFAULT '0', + `map` int(11) unsigned NOT NULL DEFAULT '0' COMMENT 'Map Identifier', + `phaseMask` int(11) unsigned NOT NULL DEFAULT '1', + `time` bigint(20) unsigned NOT NULL DEFAULT '0', + `corpse_type` tinyint(3) unsigned NOT NULL DEFAULT '0', + `instance` int(11) unsigned NOT NULL DEFAULT '0', + PRIMARY KEY (`guid`), KEY `idx_type` (`corpse_type`), KEY `instance` (`instance`), - INDEX `Idx_player`(`player`), - INDEX `Idx_time`(`time`) + KEY `Idx_player` (`player`), + KEY `Idx_time` (`time`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Death System'; +/*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `corpse` @@ -1083,13 +1246,16 @@ UNLOCK TABLES; -- DROP TABLE IF EXISTS `creature_respawn`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; CREATE TABLE `creature_respawn` ( - `guid` int(10) unsigned NOT NULL default '0' COMMENT 'Global Unique Identifier', - `respawntime` bigint(20) unsigned NOT NULL default '0', - `instance` mediumint(8) unsigned NOT NULL default '0', - PRIMARY KEY (`guid`,`instance`), + `guid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Global Unique Identifier', + `respawntime` bigint(20) unsigned NOT NULL DEFAULT '0', + `instance` mediumint(8) unsigned NOT NULL DEFAULT '0', + PRIMARY KEY (`guid`,`instance`), KEY `instance` (`instance`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Grid Loading System'; +/*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `creature_respawn` @@ -1105,10 +1271,13 @@ UNLOCK TABLES; -- DROP TABLE IF EXISTS `game_event_status`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; CREATE TABLE `game_event_status` ( - `event` smallint(6) unsigned NOT NULL default '0', - PRIMARY KEY (`event`) + `event` smallint(6) unsigned NOT NULL DEFAULT '0', + PRIMARY KEY (`event`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Game event system'; +/*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `game_event_status` @@ -1124,13 +1293,16 @@ UNLOCK TABLES; -- DROP TABLE IF EXISTS `gameobject_respawn`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; CREATE TABLE `gameobject_respawn` ( - `guid` int(10) unsigned NOT NULL default '0' COMMENT 'Global Unique Identifier', - `respawntime` bigint(20) unsigned NOT NULL default '0', - `instance` mediumint(8) unsigned NOT NULL default '0', - PRIMARY KEY (`guid`,`instance`), + `guid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Global Unique Identifier', + `respawntime` bigint(20) unsigned NOT NULL DEFAULT '0', + `instance` mediumint(8) unsigned NOT NULL DEFAULT '0', + PRIMARY KEY (`guid`,`instance`), KEY `instance` (`instance`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Grid Loading System'; +/*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `gameobject_respawn` @@ -1141,11 +1313,64 @@ LOCK TABLES `gameobject_respawn` WRITE; /*!40000 ALTER TABLE `gameobject_respawn` ENABLE KEYS */; UNLOCK TABLES; +-- +-- Table structure for table `group_instance` +-- + +DROP TABLE IF EXISTS `group_instance`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `group_instance` ( + `leaderGuid` int(11) unsigned NOT NULL DEFAULT '0', + `instance` int(11) unsigned NOT NULL DEFAULT '0', + `permanent` tinyint(1) unsigned NOT NULL DEFAULT '0', + PRIMARY KEY (`leaderGuid`,`instance`), + KEY `instance` (`instance`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `group_instance` +-- + +LOCK TABLES `group_instance` WRITE; +/*!40000 ALTER TABLE `group_instance` DISABLE KEYS */; +/*!40000 ALTER TABLE `group_instance` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `group_member` +-- + +DROP TABLE IF EXISTS `group_member`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `group_member` ( + `groupId` int(11) unsigned NOT NULL, + `memberGuid` int(11) unsigned NOT NULL, + `assistant` tinyint(1) unsigned NOT NULL, + `subgroup` smallint(6) unsigned NOT NULL, + PRIMARY KEY (`groupId`,`memberGuid`), + KEY `Idx_memberGuid` (`memberGuid`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Groups'; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `group_member` +-- + +LOCK TABLES `group_member` WRITE; +/*!40000 ALTER TABLE `group_member` DISABLE KEYS */; +/*!40000 ALTER TABLE `group_member` ENABLE KEYS */; +UNLOCK TABLES; + -- -- Table structure for table `groups` -- DROP TABLE IF EXISTS `groups`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; CREATE TABLE `groups` ( `groupId` int(11) unsigned NOT NULL, `leaderGuid` int(11) unsigned NOT NULL, @@ -1163,11 +1388,12 @@ CREATE TABLE `groups` ( `icon7` int(11) unsigned NOT NULL, `icon8` int(11) unsigned NOT NULL, `groupType` tinyint(1) unsigned NOT NULL, - `difficulty` tinyint(3) unsigned NOT NULL default '0', - `raiddifficulty` int(11) UNSIGNED NOT NULL default '0', - PRIMARY KEY (`groupId`), - UNIQUE KEY (`leaderGuid`) + `difficulty` tinyint(3) unsigned NOT NULL DEFAULT '0', + `raiddifficulty` int(11) unsigned NOT NULL DEFAULT '0', + PRIMARY KEY (`groupId`), + UNIQUE KEY `leaderGuid` (`leaderGuid`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Groups'; +/*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `groups` @@ -1178,70 +1404,29 @@ LOCK TABLES `groups` WRITE; /*!40000 ALTER TABLE `groups` ENABLE KEYS */; UNLOCK TABLES; --- ---------------------------- --- Table structure for group_instance --- ---------------------------- -DROP TABLE IF EXISTS `group_instance`; -CREATE TABLE `group_instance` ( - `leaderGuid` int(11) unsigned NOT NULL default '0', - `instance` int(11) unsigned NOT NULL default '0', - `permanent` tinyint(1) unsigned NOT NULL default '0', - PRIMARY KEY (`leaderGuid`,`instance`), - KEY `instance` (`instance`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8; - --- --- Dumping data for table `group_instance` --- - -LOCK TABLES `group_instance` WRITE; -/*!40000 ALTER TABLE `group_instance` DISABLE KEYS */; -/*!40000 ALTER TABLE `group_instance` ENABLE KEYS */; -UNLOCK TABLES; - --- --- Table structure for table `group_member` --- - -DROP TABLE IF EXISTS `group_member`; -CREATE TABLE `group_member` ( - `groupId` int(11) unsigned NOT NULL, - `memberGuid` int(11) unsigned NOT NULL, - `assistant` tinyint(1) unsigned NOT NULL, - `subgroup` smallint(6) unsigned NOT NULL, - PRIMARY KEY (`groupId`,`memberGuid`), - INDEX `Idx_memberGuid`(`memberGuid`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Groups'; - --- --- Dumping data for table `group_member` --- - -LOCK TABLES `group_member` WRITE; -/*!40000 ALTER TABLE `group_member` DISABLE KEYS */; -/*!40000 ALTER TABLE `group_member` ENABLE KEYS */; -UNLOCK TABLES; - -- -- Table structure for table `guild` -- DROP TABLE IF EXISTS `guild`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; CREATE TABLE `guild` ( - `guildid` int(6) unsigned NOT NULL default '0', - `name` varchar(255) NOT NULL default '', - `leaderguid` int(6) unsigned NOT NULL default '0', - `EmblemStyle` int(5) NOT NULL default '0', - `EmblemColor` int(5) NOT NULL default '0', - `BorderStyle` int(5) NOT NULL default '0', - `BorderColor` int(5) NOT NULL default '0', - `BackgroundColor` int(5) NOT NULL default '0', + `guildid` int(6) unsigned NOT NULL DEFAULT '0', + `name` varchar(255) NOT NULL DEFAULT '', + `leaderguid` int(6) unsigned NOT NULL DEFAULT '0', + `EmblemStyle` int(5) NOT NULL DEFAULT '0', + `EmblemColor` int(5) NOT NULL DEFAULT '0', + `BorderStyle` int(5) NOT NULL DEFAULT '0', + `BorderColor` int(5) NOT NULL DEFAULT '0', + `BackgroundColor` int(5) NOT NULL DEFAULT '0', `info` text NOT NULL, - `motd` varchar(255) NOT NULL default '', - `createdate` bigint(20) unsigned NOT NULL default '0', - `BankMoney` bigint(20) unsigned NOT NULL default '0', - PRIMARY KEY (`guildid`) + `motd` varchar(255) NOT NULL DEFAULT '', + `createdate` bigint(20) unsigned NOT NULL DEFAULT '0', + `BankMoney` bigint(20) unsigned NOT NULL DEFAULT '0', + PRIMARY KEY (`guildid`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Guild System'; +/*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `guild` @@ -1257,21 +1442,24 @@ UNLOCK TABLES; -- DROP TABLE IF EXISTS `guild_bank_eventlog`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; CREATE TABLE `guild_bank_eventlog` ( - `guildid` int(11) unsigned NOT NULL default '0' COMMENT 'Guild Identificator', - `LogGuid` int(11) unsigned NOT NULL default '0' COMMENT 'Log record identificator - auxiliary column', - `TabId` tinyint(3) unsigned NOT NULL default '0' COMMENT 'Guild bank TabId', - `EventType` tinyint(3) unsigned NOT NULL default '0' COMMENT 'Event type', - `PlayerGuid` int(11) unsigned NOT NULL default '0', - `ItemOrMoney` int(11) unsigned NOT NULL default '0', - `ItemStackCount` tinyint(3) unsigned NOT NULL default '0', - `DestTabId` tinyint(1) unsigned NOT NULL default '0' COMMENT 'Destination Tab Id', - `TimeStamp` bigint(20) unsigned NOT NULL default '0' COMMENT 'Event UNIX time', - PRIMARY KEY (`guildid`,`LogGuid`,`TabId`), + `guildid` int(11) unsigned NOT NULL DEFAULT '0' COMMENT 'Guild Identificator', + `LogGuid` int(11) unsigned NOT NULL DEFAULT '0' COMMENT 'Log record identificator - auxiliary column', + `TabId` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT 'Guild bank TabId', + `EventType` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT 'Event type', + `PlayerGuid` int(11) unsigned NOT NULL DEFAULT '0', + `ItemOrMoney` int(11) unsigned NOT NULL DEFAULT '0', + `ItemStackCount` tinyint(3) unsigned NOT NULL DEFAULT '0', + `DestTabId` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT 'Destination Tab Id', + `TimeStamp` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT 'Event UNIX time', + PRIMARY KEY (`guildid`,`LogGuid`,`TabId`), KEY `guildid_key` (`guildid`), - INDEX `Idx_PlayerGuid`(`PlayerGuid`), - INDEX `Idx_LogGuid`(`LogGuid`) + KEY `Idx_PlayerGuid` (`PlayerGuid`), + KEY `Idx_LogGuid` (`LogGuid`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `guild_bank_eventlog` @@ -1287,16 +1475,19 @@ UNLOCK TABLES; -- DROP TABLE IF EXISTS `guild_bank_item`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; CREATE TABLE `guild_bank_item` ( - `guildid` int(11) unsigned NOT NULL default '0', - `TabId` tinyint(1) unsigned NOT NULL default '0', - `SlotId` tinyint(3) unsigned NOT NULL default '0', - `item_guid` int(11) unsigned NOT NULL default '0', - `item_entry` int(11) unsigned NOT NULL default '0', - PRIMARY KEY (`guildid`,`tabid`,`slotid`), + `guildid` int(11) unsigned NOT NULL DEFAULT '0', + `TabId` tinyint(1) unsigned NOT NULL DEFAULT '0', + `SlotId` tinyint(3) unsigned NOT NULL DEFAULT '0', + `item_guid` int(11) unsigned NOT NULL DEFAULT '0', + `item_entry` int(11) unsigned NOT NULL DEFAULT '0', + PRIMARY KEY (`guildid`,`TabId`,`SlotId`), KEY `guildid_key` (`guildid`), - INDEX `Idx_item_guid`(`item_guid`) + KEY `Idx_item_guid` (`item_guid`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `guild_bank_item` @@ -1312,15 +1503,18 @@ UNLOCK TABLES; -- DROP TABLE IF EXISTS `guild_bank_right`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; CREATE TABLE `guild_bank_right` ( - `guildid` int(11) unsigned NOT NULL default '0', - `TabId` tinyint(1) unsigned NOT NULL default '0', - `rid` int(11) unsigned NOT NULL default '0', - `gbright` tinyint(3) unsigned NOT NULL default '0', - `SlotPerDay` int(11) unsigned NOT NULL default '0', - PRIMARY KEY (`guildid`,`TabId`,`rid`), + `guildid` int(11) unsigned NOT NULL DEFAULT '0', + `TabId` tinyint(1) unsigned NOT NULL DEFAULT '0', + `rid` int(11) unsigned NOT NULL DEFAULT '0', + `gbright` tinyint(3) unsigned NOT NULL DEFAULT '0', + `SlotPerDay` int(11) unsigned NOT NULL DEFAULT '0', + PRIMARY KEY (`guildid`,`TabId`,`rid`), KEY `guildid_key` (`guildid`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `guild_bank_right` @@ -1336,15 +1530,18 @@ UNLOCK TABLES; -- DROP TABLE IF EXISTS `guild_bank_tab`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; CREATE TABLE `guild_bank_tab` ( - `guildid` int(11) unsigned NOT NULL default '0', - `TabId` tinyint(1) unsigned NOT NULL default '0', - `TabName` varchar(100) NOT NULL default '', - `TabIcon` varchar(100) NOT NULL default '', + `guildid` int(11) unsigned NOT NULL DEFAULT '0', + `TabId` tinyint(1) unsigned NOT NULL DEFAULT '0', + `TabName` varchar(100) NOT NULL DEFAULT '', + `TabIcon` varchar(100) NOT NULL DEFAULT '', `TabText` text, - PRIMARY KEY (`guildid`,`TabId`), + PRIMARY KEY (`guildid`,`TabId`), KEY `guildid_key` (`guildid`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `guild_bank_tab` @@ -1360,6 +1557,8 @@ UNLOCK TABLES; -- DROP TABLE IF EXISTS `guild_eventlog`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; CREATE TABLE `guild_eventlog` ( `guildid` int(11) unsigned NOT NULL COMMENT 'Guild Identificator', `LogGuid` int(11) unsigned NOT NULL COMMENT 'Log record identificator - auxiliary column', @@ -1368,11 +1567,12 @@ CREATE TABLE `guild_eventlog` ( `PlayerGuid2` int(11) unsigned NOT NULL COMMENT 'Player 2', `NewRank` tinyint(2) unsigned NOT NULL COMMENT 'New rank(in case promotion/demotion)', `TimeStamp` bigint(20) unsigned NOT NULL COMMENT 'Event UNIX time', - PRIMARY KEY (`guildid`, `LogGuid`), - INDEX `Idx_PlayerGuid1`(`PlayerGuid1`), - INDEX `Idx_PlayerGuid2`(`PlayerGuid2`), - INDEX `Idx_LogGuid`(`LogGuid`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT 'Guild Eventlog'; + PRIMARY KEY (`guildid`,`LogGuid`), + KEY `Idx_PlayerGuid1` (`PlayerGuid1`), + KEY `Idx_PlayerGuid2` (`PlayerGuid2`), + KEY `Idx_LogGuid` (`LogGuid`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Guild Eventlog'; +/*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `guild_eventlog` @@ -1388,30 +1588,33 @@ UNLOCK TABLES; -- DROP TABLE IF EXISTS `guild_member`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; CREATE TABLE `guild_member` ( - `guildid` int(6) unsigned NOT NULL default '0', - `guid` int(11) unsigned NOT NULL default '0', - `rank` tinyint(2) unsigned NOT NULL default '0', - `pnote` varchar(255) NOT NULL default '', - `offnote` varchar(255) NOT NULL default '', - `BankResetTimeMoney` int(11) unsigned NOT NULL default '0', - `BankRemMoney` int(11) unsigned NOT NULL default '0', - `BankResetTimeTab0` int(11) unsigned NOT NULL default '0', - `BankRemSlotsTab0` int(11) unsigned NOT NULL default '0', - `BankResetTimeTab1` int(11) unsigned NOT NULL default '0', - `BankRemSlotsTab1` int(11) unsigned NOT NULL default '0', - `BankResetTimeTab2` int(11) unsigned NOT NULL default '0', - `BankRemSlotsTab2` int(11) unsigned NOT NULL default '0', - `BankResetTimeTab3` int(11) unsigned NOT NULL default '0', - `BankRemSlotsTab3` int(11) unsigned NOT NULL default '0', - `BankResetTimeTab4` int(11) unsigned NOT NULL default '0', - `BankRemSlotsTab4` int(11) unsigned NOT NULL default '0', - `BankResetTimeTab5` int(11) unsigned NOT NULL default '0', - `BankRemSlotsTab5` int(11) unsigned NOT NULL default '0', + `guildid` int(6) unsigned NOT NULL DEFAULT '0', + `guid` int(11) unsigned NOT NULL DEFAULT '0', + `rank` tinyint(2) unsigned NOT NULL DEFAULT '0', + `pnote` varchar(255) NOT NULL DEFAULT '', + `offnote` varchar(255) NOT NULL DEFAULT '', + `BankResetTimeMoney` int(11) unsigned NOT NULL DEFAULT '0', + `BankRemMoney` int(11) unsigned NOT NULL DEFAULT '0', + `BankResetTimeTab0` int(11) unsigned NOT NULL DEFAULT '0', + `BankRemSlotsTab0` int(11) unsigned NOT NULL DEFAULT '0', + `BankResetTimeTab1` int(11) unsigned NOT NULL DEFAULT '0', + `BankRemSlotsTab1` int(11) unsigned NOT NULL DEFAULT '0', + `BankResetTimeTab2` int(11) unsigned NOT NULL DEFAULT '0', + `BankRemSlotsTab2` int(11) unsigned NOT NULL DEFAULT '0', + `BankResetTimeTab3` int(11) unsigned NOT NULL DEFAULT '0', + `BankRemSlotsTab3` int(11) unsigned NOT NULL DEFAULT '0', + `BankResetTimeTab4` int(11) unsigned NOT NULL DEFAULT '0', + `BankRemSlotsTab4` int(11) unsigned NOT NULL DEFAULT '0', + `BankResetTimeTab5` int(11) unsigned NOT NULL DEFAULT '0', + `BankRemSlotsTab5` int(11) unsigned NOT NULL DEFAULT '0', + UNIQUE KEY `guid_key` (`guid`), KEY `guildid_key` (`guildid`), - KEY `guildid_rank_key` (`guildid`,`rank`), - UNIQUE KEY `guid_key` (`guid`) + KEY `guildid_rank_key` (`guildid`,`rank`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Guild System'; +/*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `guild_member` @@ -1427,15 +1630,18 @@ UNLOCK TABLES; -- DROP TABLE IF EXISTS `guild_rank`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; CREATE TABLE `guild_rank` ( - `guildid` int(6) unsigned NOT NULL default '0', + `guildid` int(6) unsigned NOT NULL DEFAULT '0', `rid` int(11) unsigned NOT NULL, - `rname` varchar(255) NOT NULL default '', - `rights` int(3) unsigned NOT NULL default '0', - `BankMoneyPerDay` int(11) unsigned NOT NULL default '0', - PRIMARY KEY (`guildid`,`rid`), - INDEX `Idx_rid`(`rid`) + `rname` varchar(255) NOT NULL DEFAULT '', + `rights` int(3) unsigned NOT NULL DEFAULT '0', + `BankMoneyPerDay` int(11) unsigned NOT NULL DEFAULT '0', + PRIMARY KEY (`guildid`,`rid`), + KEY `Idx_rid` (`rid`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Guild System'; +/*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `guild_rank` @@ -1451,17 +1657,20 @@ UNLOCK TABLES; -- DROP TABLE IF EXISTS `instance`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; CREATE TABLE `instance` ( - `id` int(11) unsigned NOT NULL default '0', - `map` int(11) unsigned NOT NULL default '0', - `resettime` bigint(40) unsigned NOT NULL default '0', - `difficulty` tinyint(1) unsigned NOT NULL default '0', - `encountersMask` int(10) unsigned NOT NULL default '0', + `id` int(11) unsigned NOT NULL DEFAULT '0', + `map` int(11) unsigned NOT NULL DEFAULT '0', + `resettime` bigint(40) unsigned NOT NULL DEFAULT '0', + `difficulty` tinyint(1) unsigned NOT NULL DEFAULT '0', + `encountersMask` int(10) unsigned NOT NULL DEFAULT '0', `data` longtext, - PRIMARY KEY (`id`), + PRIMARY KEY (`id`), KEY `map` (`map`), KEY `resettime` (`resettime`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `instance` @@ -1472,16 +1681,20 @@ LOCK TABLES `instance` WRITE; /*!40000 ALTER TABLE `instance` ENABLE KEYS */; UNLOCK TABLES; --- ---------------------------- --- Table structure for instance_reset --- ---------------------------- +-- +-- Table structure for table `instance_reset` +-- + DROP TABLE IF EXISTS `instance_reset`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; CREATE TABLE `instance_reset` ( - `mapid` int(11) unsigned NOT NULL default '0', - `difficulty` tinyint(1) unsigned NOT NULL default '0', - `resettime` bigint(40) unsigned NOT NULL default '0', - PRIMARY KEY (`mapid`,`difficulty`) + `mapid` int(11) unsigned NOT NULL DEFAULT '0', + `difficulty` tinyint(1) unsigned NOT NULL DEFAULT '0', + `resettime` bigint(40) unsigned NOT NULL DEFAULT '0', + PRIMARY KEY (`mapid`,`difficulty`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `instance_reset` @@ -1497,14 +1710,17 @@ UNLOCK TABLES; -- DROP TABLE IF EXISTS `item_instance`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; CREATE TABLE `item_instance` ( - `guid` int(11) unsigned NOT NULL default '0', - `owner_guid` int(11) unsigned NOT NULL default '0', + `guid` int(11) unsigned NOT NULL DEFAULT '0', + `owner_guid` int(11) unsigned NOT NULL DEFAULT '0', `data` longtext, `text` longtext, - PRIMARY KEY (`guid`), + PRIMARY KEY (`guid`), KEY `idx_owner_guid` (`owner_guid`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Item System'; +/*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `item_instance` @@ -1520,16 +1736,19 @@ UNLOCK TABLES; -- DROP TABLE IF EXISTS `item_loot`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; CREATE TABLE `item_loot` ( - `guid` int(11) unsigned NOT NULL default '0', - `owner_guid` int(11) unsigned NOT NULL default '0', - `itemid` int(11) unsigned NOT NULL default '0', - `amount` int(11) unsigned NOT NULL default '0', - `suffix` int(11) unsigned NOT NULL default '0', - `property` int(11) NOT NULL default '0', - PRIMARY KEY (`guid`,`itemid`), + `guid` int(11) unsigned NOT NULL DEFAULT '0', + `owner_guid` int(11) unsigned NOT NULL DEFAULT '0', + `itemid` int(11) unsigned NOT NULL DEFAULT '0', + `amount` int(11) unsigned NOT NULL DEFAULT '0', + `suffix` int(11) unsigned NOT NULL DEFAULT '0', + `property` int(11) NOT NULL DEFAULT '0', + PRIMARY KEY (`guid`,`itemid`), KEY `idx_owner_guid` (`owner_guid`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Item System'; +/*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `item_loot` @@ -1545,24 +1764,27 @@ UNLOCK TABLES; -- DROP TABLE IF EXISTS `mail`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; CREATE TABLE `mail` ( - `id` int(11) unsigned NOT NULL default '0' COMMENT 'Identifier', - `messageType` tinyint(3) unsigned NOT NULL default '0', - `stationery` tinyint(3) NOT NULL default '41', - `mailTemplateId` mediumint(8) unsigned NOT NULL default '0', - `sender` int(11) unsigned NOT NULL default '0' COMMENT 'Character Global Unique Identifier', - `receiver` int(11) unsigned NOT NULL default '0' COMMENT 'Character Global Unique Identifier', + `id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT 'Identifier', + `messageType` tinyint(3) unsigned NOT NULL DEFAULT '0', + `stationery` tinyint(3) NOT NULL DEFAULT '41', + `mailTemplateId` mediumint(8) unsigned NOT NULL DEFAULT '0', + `sender` int(11) unsigned NOT NULL DEFAULT '0' COMMENT 'Character Global Unique Identifier', + `receiver` int(11) unsigned NOT NULL DEFAULT '0' COMMENT 'Character Global Unique Identifier', `subject` longtext, `body` longtext, - `has_items` tinyint(3) unsigned NOT NULL default '0', - `expire_time` bigint(40) unsigned NOT NULL default '0', - `deliver_time` bigint(40) unsigned NOT NULL default '0', - `money` int(11) unsigned NOT NULL default '0', - `cod` int(11) unsigned NOT NULL default '0', - `checked` tinyint(3) unsigned NOT NULL default '0', - PRIMARY KEY (`id`), + `has_items` tinyint(3) unsigned NOT NULL DEFAULT '0', + `expire_time` bigint(40) unsigned NOT NULL DEFAULT '0', + `deliver_time` bigint(40) unsigned NOT NULL DEFAULT '0', + `money` bigint(40) unsigned NOT NULL DEFAULT '0', + `cod` bigint(40) unsigned NOT NULL DEFAULT '0', + `checked` tinyint(3) unsigned NOT NULL DEFAULT '0', + PRIMARY KEY (`id`), KEY `idx_receiver` (`receiver`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Mail System'; +/*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `mail` @@ -1578,14 +1800,17 @@ UNLOCK TABLES; -- DROP TABLE IF EXISTS `mail_items`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; CREATE TABLE `mail_items` ( - `mail_id` int(11) NOT NULL default '0', - `item_guid` int(11) NOT NULL default '0', - `item_template` int(11) NOT NULL default '0', - `receiver` int(11) unsigned NOT NULL default '0' COMMENT 'Character Global Unique Identifier', - PRIMARY KEY (`mail_id`,`item_guid`), + `mail_id` int(11) NOT NULL DEFAULT '0', + `item_guid` int(11) NOT NULL DEFAULT '0', + `item_template` int(11) NOT NULL DEFAULT '0', + `receiver` int(11) unsigned NOT NULL DEFAULT '0' COMMENT 'Character Global Unique Identifier', + PRIMARY KEY (`mail_id`,`item_guid`), KEY `idx_receiver` (`receiver`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC; +/*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `mail_items` @@ -1601,24 +1826,27 @@ UNLOCK TABLES; -- DROP TABLE IF EXISTS `pet_aura`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; CREATE TABLE `pet_aura` ( - `guid` int(11) unsigned NOT NULL default '0' COMMENT 'Global Unique Identifier', - `caster_guid` bigint(20) unsigned NOT NULL default '0' COMMENT 'Full Global Unique Identifier', - `item_guid` int(11) unsigned NOT NULL default '0', - `spell` int(11) unsigned NOT NULL default '0', - `stackcount` INT(11) UNSIGNED NOT NULL DEFAULT '1', - `remaincharges` INT(11) UNSIGNED NOT NULL DEFAULT '0', - `basepoints0` INT(11) NOT NULL DEFAULT '0', - `basepoints1` INT(11) NOT NULL DEFAULT '0', - `basepoints2` INT(11) NOT NULL DEFAULT '0', - `periodictime0` INT(11) UNSIGNED NOT NULL DEFAULT '0', - `periodictime1` INT(11) UNSIGNED NOT NULL DEFAULT '0', - `periodictime2` INT(11) UNSIGNED NOT NULL DEFAULT '0', - `maxduration` INT(11) NOT NULL DEFAULT '0', - `remaintime` INT(11) NOT NULL DEFAULT '0', - `effIndexMask` INT(11) UNSIGNED NOT NULL DEFAULT '0', + `guid` int(11) unsigned NOT NULL DEFAULT '0' COMMENT 'Global Unique Identifier', + `caster_guid` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT 'Full Global Unique Identifier', + `item_guid` int(11) unsigned NOT NULL DEFAULT '0', + `spell` int(11) unsigned NOT NULL DEFAULT '0', + `stackcount` int(11) unsigned NOT NULL DEFAULT '1', + `remaincharges` int(11) unsigned NOT NULL DEFAULT '0', + `basepoints0` int(11) NOT NULL DEFAULT '0', + `basepoints1` int(11) NOT NULL DEFAULT '0', + `basepoints2` int(11) NOT NULL DEFAULT '0', + `periodictime0` int(11) unsigned NOT NULL DEFAULT '0', + `periodictime1` int(11) unsigned NOT NULL DEFAULT '0', + `periodictime2` int(11) unsigned NOT NULL DEFAULT '0', + `maxduration` int(11) NOT NULL DEFAULT '0', + `remaintime` int(11) NOT NULL DEFAULT '0', + `effIndexMask` int(11) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`guid`,`caster_guid`,`item_guid`,`spell`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Pet System'; +/*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `pet_aura` @@ -1634,12 +1862,15 @@ UNLOCK TABLES; -- DROP TABLE IF EXISTS `pet_spell`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; CREATE TABLE `pet_spell` ( - `guid` int(11) unsigned NOT NULL default '0' COMMENT 'Global Unique Identifier', - `spell` int(11) unsigned NOT NULL default '0' COMMENT 'Spell Identifier', - `active` int(11) unsigned NOT NULL default '0', - PRIMARY KEY (`guid`,`spell`) + `guid` int(11) unsigned NOT NULL DEFAULT '0' COMMENT 'Global Unique Identifier', + `spell` int(11) unsigned NOT NULL DEFAULT '0' COMMENT 'Spell Identifier', + `active` int(11) unsigned NOT NULL DEFAULT '0', + PRIMARY KEY (`guid`,`spell`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Pet System'; +/*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `pet_spell` @@ -1655,12 +1886,15 @@ UNLOCK TABLES; -- DROP TABLE IF EXISTS `pet_spell_cooldown`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; CREATE TABLE `pet_spell_cooldown` ( - `guid` int(11) unsigned NOT NULL default '0' COMMENT 'Global Unique Identifier, Low part', - `spell` int(11) unsigned NOT NULL default '0' COMMENT 'Spell Identifier', - `time` bigint(20) unsigned NOT NULL default '0', - PRIMARY KEY (`guid`,`spell`) + `guid` int(11) unsigned NOT NULL DEFAULT '0' COMMENT 'Global Unique Identifier, Low part', + `spell` int(11) unsigned NOT NULL DEFAULT '0' COMMENT 'Spell Identifier', + `time` bigint(20) unsigned NOT NULL DEFAULT '0', + PRIMARY KEY (`guid`,`spell`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `pet_spell_cooldown` @@ -1676,14 +1910,16 @@ UNLOCK TABLES; -- DROP TABLE IF EXISTS `petition`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; CREATE TABLE `petition` ( `ownerguid` int(10) unsigned NOT NULL, - `petitionguid` int(10) unsigned default '0', - `name` varchar(255) NOT NULL default '', - `type` int(10) unsigned NOT NULL default '0', - PRIMARY KEY (`ownerguid`,`type`), + `petitionguid` int(10) unsigned DEFAULT '0', + `name` varchar(255) NOT NULL DEFAULT '', + PRIMARY KEY (`ownerguid`), UNIQUE KEY `index_ownerguid_petitionguid` (`ownerguid`,`petitionguid`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Guild System'; +/*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `petition` @@ -1699,16 +1935,18 @@ UNLOCK TABLES; -- DROP TABLE IF EXISTS `petition_sign`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; CREATE TABLE `petition_sign` ( `ownerguid` int(10) unsigned NOT NULL, - `petitionguid` int(11) unsigned NOT NULL default '0', - `playerguid` int(11) unsigned NOT NULL default '0', - `player_account` int(11) unsigned NOT NULL default '0', - `type` int(10) unsigned NOT NULL default '0', - PRIMARY KEY (`petitionguid`,`playerguid`), - INDEX `Idx_playerguid`(`playerguid`), - INDEX `Idx_ownerguid`(`ownerguid`) + `petitionguid` int(11) unsigned NOT NULL DEFAULT '0', + `playerguid` int(11) unsigned NOT NULL DEFAULT '0', + `player_account` int(11) unsigned NOT NULL DEFAULT '0', + PRIMARY KEY (`petitionguid`,`playerguid`), + KEY `Idx_playerguid` (`playerguid`), + KEY `Idx_ownerguid` (`ownerguid`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Guild System'; +/*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `petition_sign` @@ -1718,20 +1956,22 @@ LOCK TABLES `petition_sign` WRITE; /*!40000 ALTER TABLE `petition_sign` DISABLE KEYS */; /*!40000 ALTER TABLE `petition_sign` ENABLE KEYS */; UNLOCK TABLES; -/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; -- -- Table structure for table `saved_variables` -- DROP TABLE IF EXISTS `saved_variables`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; CREATE TABLE `saved_variables` ( - `NextCurrenciesResetTime` bigint(40) UNSIGNED NOT NULL DEFAULT '0', - `NextDailyQuestResetTime` bigint(40) unsigned NOT NULL default '0', - `NextWeeklyQuestResetTime` bigint(40) unsigned NOT NULL default '0', - `NextMonthlyQuestResetTime` bigint(40) unsigned NOT NULL default '0', - `cleaning_flags` int(11) unsigned NOT NULL default '0' + `NextCurrenciesResetTime` bigint(40) unsigned NOT NULL DEFAULT '0', + `NextDailyQuestResetTime` bigint(40) unsigned NOT NULL DEFAULT '0', + `NextWeeklyQuestResetTime` bigint(40) unsigned NOT NULL DEFAULT '0', + `NextMonthlyQuestResetTime` bigint(40) unsigned NOT NULL DEFAULT '0', + `cleaning_flags` int(11) unsigned NOT NULL DEFAULT '0' ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Variable Saves'; +/*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `saved_variables` @@ -1741,18 +1981,20 @@ LOCK TABLES `saved_variables` WRITE; /*!40000 ALTER TABLE `saved_variables` DISABLE KEYS */; /*!40000 ALTER TABLE `saved_variables` ENABLE KEYS */; UNLOCK TABLES; -/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; -- -- Table structure for table `world` -- DROP TABLE IF EXISTS `world`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; CREATE TABLE `world` ( - `map` int(11) unsigned NOT NULL default '0', + `map` int(11) unsigned NOT NULL DEFAULT '0', `data` longtext, - PRIMARY KEY (`map`) + PRIMARY KEY (`map`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `world` @@ -1762,6 +2004,7 @@ LOCK TABLES `world` WRITE; /*!40000 ALTER TABLE `world` DISABLE KEYS */; /*!40000 ALTER TABLE `world` ENABLE KEYS */; UNLOCK TABLES; +/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; @@ -1771,4 +2014,3 @@ UNLOCK TABLES; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; --- Dump completed on 2008-01-10 11:37:06 diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 28909dce5..6976a249e 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "12657" + #define REVISION_NR "12658" #endif // __REVISION_NR_H__