aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorleak <leakzx@googlemail.com>2011-01-19 01:31:08 +0100
committerleak <leakzx@googlemail.com>2011-01-19 01:31:08 +0100
commit719ffeb414c97e09469bd2af2bf381ea6f7eecec (patch)
treeb3af99d0a437888ebead84c7cae53da358d01499
parent40af92dd66a4905946e155aca01fb75c0ba35185 (diff)
SQL: Resync characters db base SQL with rollups and redump with recent mysqldump version in preparation for char db storage type cleanup
-rw-r--r--sql/base/characters_database.sql1278
1 files changed, 647 insertions, 631 deletions
diff --git a/sql/base/characters_database.sql b/sql/base/characters_database.sql
index bfbed7ea722..9e923ab66ed 100644
--- a/sql/base/characters_database.sql
+++ b/sql/base/characters_database.sql
@@ -1,8 +1,8 @@
--- MySQL dump 10.11
+-- MySQL dump 10.13 Distrib 5.1.51, for pc-linux-gnu (i686)
--
-- Host: localhost Database: characters
-- ------------------------------------------------------
--- Server version 5.0.45-Debian_1ubuntu3.1-log
+-- Server version 5.1.51-log
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
@@ -23,11 +23,11 @@ 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 */;
@@ -48,8 +48,8 @@ DROP TABLE IF EXISTS `addons`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `addons` (
- `name` varchar(120) NOT NULL default '',
- `crc` int(32) unsigned NOT NULL default '0',
+ `name` varchar(120) NOT NULL DEFAULT '',
+ `crc` int(32) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Addons';
/*!40101 SET character_set_client = @saved_cs_client */;
@@ -71,16 +71,16 @@ 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 */;
@@ -101,13 +101,13 @@ 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',
- 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',
+ PRIMARY KEY (`arenateamid`,`guid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
@@ -121,31 +121,6 @@ LOCK TABLES `arena_team_member` WRITE;
UNLOCK TABLES;
--
--- Table structure for table `character_arena_stats`
---
-
-DROP TABLE IF EXISTS `character_arena_stats`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `character_arena_stats` (
- `guid` int(10) NOT NULL ,
- `slot` smallint(1) NOT NULL ,
- `personal_rating` int(10) NOT NULL ,
- `matchmaker_rating` int(10) NOT NULL ,
- PRIMARY KEY (`guid`, `slot`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Dumping data for table `character_arena_stats`
---
-
-LOCK TABLES `character_arena_stats` WRITE;
-/*!40000 ALTER TABLE `character_arena_stats` DISABLE KEYS */;
-/*!40000 ALTER TABLE `character_arena_stats` ENABLE KEYS */;
-UNLOCK TABLES;
-
---
-- Table structure for table `arena_team_stats`
--
@@ -153,14 +128,14 @@ 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` int(10) unsigned NOT NULL default '0',
- `wins` int(10) unsigned NOT NULL default '0',
- `played` int(10) unsigned NOT NULL default '0',
- `wins2` 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` int(10) unsigned NOT NULL DEFAULT '0',
+ `wins` int(10) unsigned NOT NULL DEFAULT '0',
+ `played` int(10) unsigned NOT NULL DEFAULT '0',
+ `wins2` 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 */;
@@ -181,17 +156,17 @@ DROP TABLE IF EXISTS `auctionhouse`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `auctionhouse` (
- `id` int(11) unsigned NOT NULL default '0',
- `auctioneerguid` int(11) unsigned NOT NULL default '0',
- `itemguid` int(11) unsigned NOT NULL default '0',
- `itemowner` int(11) unsigned NOT NULL default '0',
- `buyoutprice` int(11) NOT NULL default '0',
- `time` bigint(40) 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',
+ `auctioneerguid` int(11) unsigned NOT NULL DEFAULT '0',
+ `itemguid` int(11) unsigned NOT NULL DEFAULT '0',
+ `itemowner` int(11) unsigned NOT NULL DEFAULT '0',
+ `buyoutprice` int(11) NOT NULL DEFAULT '0',
+ `time` bigint(40) 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`),
UNIQUE KEY `item_guid` (`itemguid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
@@ -213,10 +188,10 @@ 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=InnoDB DEFAULT CHARSET=utf8 COMMENT='Debug System';
/*!40101 SET character_set_client = @saved_cs_client */;
@@ -229,9 +204,9 @@ LOCK TABLES `bugreport` WRITE;
/*!40000 ALTER TABLE `bugreport` ENABLE KEYS */;
UNLOCK TABLES;
---
+--
-- Table structure for table `channels`
---
+--
DROP TABLE IF EXISTS `channels`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
@@ -239,12 +214,12 @@ DROP TABLE IF EXISTS `channels`;
CREATE TABLE `channels` (
`m_name` varchar(128) NOT NULL,
`m_team` int(10) unsigned NOT NULL,
- `m_announce` tinyint(3) unsigned NOT NULL default '1',
- `m_ownership` tinyint(3) unsigned NOT NULL default '1',
- `m_password` varchar(32) NULL,
+ `m_announce` tinyint(3) unsigned NOT NULL DEFAULT '1',
+ `m_ownership` tinyint(3) unsigned NOT NULL DEFAULT '1',
+ `m_password` varchar(32) DEFAULT NULL,
`BannedList` longtext,
- `last_used` INT(10) UNSIGNED NOT NULL,
- PRIMARY KEY (`m_name`,`m_team`)
+ `last_used` int(10) unsigned NOT NULL,
+ PRIMARY KEY (`m_name`,`m_team`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Channel System';
/*!40101 SET character_set_client = @saved_cs_client */;
@@ -258,100 +233,6 @@ LOCK TABLES `channels` WRITE;
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 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',
- `instance_id` int(11) unsigned NOT NULL default '0',
- `instance_mode_mask` tinyint(2) 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',
- `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,
- `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',
- `chosenTitle` int(10) unsigned NOT NULL default'0',
- `knownCurrencies` bigint(20) unsigned NOT NULL default'0',
- `watchedFaction` bigint(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',
- `power6` int(10) unsigned NOT NULL default'0',
- `power7` int(10) unsigned NOT NULL default'0',
- `latency` int(11) 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,
- `ammoId` int(10) UNSIGNED NOT NULL default '0',
- `knownTitles` longtext,
- `actionBars` tinyint(3) UNSIGNED NOT NULL default '0',
- `deleteInfos_Account` int(11) UNSIGNED default NULL,
- `deleteInfos_Name` varchar(12) default NULL,
- `deleteDate` bigint(20) default NULL,
- PRIMARY KEY (`guid`),
- KEY `idx_account` (`account`),
- KEY `idx_online` (`online`),
- KEY `idx_name` (`name`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 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 `character_account_data`
--
@@ -359,11 +240,11 @@ 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 */;
@@ -385,9 +266,9 @@ DROP TABLE IF EXISTS `character_achievement`;
/*!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 */;
@@ -411,8 +292,8 @@ 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 */;
@@ -433,12 +314,12 @@ 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',
- `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',
+ `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;
/*!40101 SET character_set_client = @saved_cs_client */;
@@ -452,6 +333,31 @@ LOCK TABLES `character_action` WRITE;
UNLOCK TABLES;
--
+-- Table structure for table `character_arena_stats`
+--
+
+DROP TABLE IF EXISTS `character_arena_stats`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `character_arena_stats` (
+ `guid` int(10) NOT NULL,
+ `slot` smallint(1) NOT NULL,
+ `personal_rating` int(10) NOT NULL,
+ `matchmaker_rating` int(10) NOT NULL,
+ PRIMARY KEY (`guid`,`slot`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Dumping data for table `character_arena_stats`
+--
+
+LOCK TABLES `character_arena_stats` WRITE;
+/*!40000 ALTER TABLE `character_arena_stats` DISABLE KEYS */;
+/*!40000 ALTER TABLE `character_arena_stats` ENABLE KEYS */;
+UNLOCK TABLES;
+
+--
-- Table structure for table `character_aura`
--
@@ -459,23 +365,23 @@ 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` bigint(20) UNSIGNED NOT NULL DEFAULT '0',
- `spell` int(11) unsigned NOT NULL default '0',
- `effect_mask` tinyint(3) unsigned NOT NULL default '0',
- `recalculate_mask` tinyint(3) unsigned NOT NULL default '0',
- `stackcount` tinyint(3) unsigned NOT NULL default '1',
- `amount0` int(11) NOT NULL default '0',
- `amount1` int(11) NOT NULL default '0',
- `amount2` int(11) NOT NULL default '0',
- `base_amount0` int(11) NOT NULL default '0',
- `base_amount1` int(11) NOT NULL default '0',
- `base_amount2` int(11) NOT NULL default '0',
- `maxduration` int(11) NOT NULL default '0',
- `remaintime` int(11) NOT NULL default '0',
- `remaincharges` tinyint(3) unsigned NOT NULL default '0',
- PRIMARY KEY (`guid`,`caster_guid`,`item_guid`,`spell`,`effect_mask`)
+ `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` bigint(20) unsigned NOT NULL DEFAULT '0',
+ `spell` int(11) unsigned NOT NULL DEFAULT '0',
+ `effect_mask` tinyint(3) unsigned NOT NULL DEFAULT '0',
+ `recalculate_mask` tinyint(3) unsigned NOT NULL DEFAULT '0',
+ `stackcount` tinyint(3) unsigned NOT NULL DEFAULT '1',
+ `amount0` int(11) NOT NULL DEFAULT '0',
+ `amount1` int(11) NOT NULL DEFAULT '0',
+ `amount2` int(11) NOT NULL DEFAULT '0',
+ `base_amount0` int(11) NOT NULL DEFAULT '0',
+ `base_amount1` int(11) NOT NULL DEFAULT '0',
+ `base_amount2` int(11) NOT NULL DEFAULT '0',
+ `maxduration` int(11) NOT NULL DEFAULT '0',
+ `remaintime` int(11) NOT NULL DEFAULT '0',
+ `remaincharges` tinyint(3) unsigned NOT NULL DEFAULT '0',
+ PRIMARY KEY (`guid`,`caster_guid`,`item_guid`,`spell`,`effect_mask`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Player System';
/*!40101 SET character_set_client = @saved_cs_client */;
@@ -496,13 +402,13 @@ DROP TABLE IF EXISTS `character_banned`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `character_banned` (
- `guid` int(11) NOT NULL default '0' COMMENT 'Account id',
- `bandate` bigint(40) NOT NULL default '0',
- `unbandate` bigint(40) NOT NULL default '0',
+ `guid` int(11) NOT NULL DEFAULT '0' COMMENT 'Account id',
+ `bandate` bigint(40) NOT NULL DEFAULT '0',
+ `unbandate` bigint(40) NOT NULL DEFAULT '0',
`bannedby` varchar(50) NOT NULL,
`banreason` varchar(255) NOT NULL,
- `active` tinyint(4) NOT NULL default '1',
- PRIMARY KEY (`guid`,`bandate`)
+ `active` tinyint(4) NOT NULL DEFAULT '1',
+ PRIMARY KEY (`guid`,`bandate`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Ban List';
/*!40101 SET character_set_client = @saved_cs_client */;
@@ -523,18 +429,18 @@ 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 COMMENT='Player System';
/*!40101 SET character_set_client = @saved_cs_client */;
@@ -555,8 +461,8 @@ DROP TABLE IF EXISTS `character_battleground_random`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `character_battleground_random` (
- `guid` int(11) unsigned NOT NULL default '0',
- PRIMARY KEY (`guid`)
+ `guid` int(11) unsigned NOT NULL DEFAULT '0',
+ PRIMARY KEY (`guid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
@@ -577,13 +483,13 @@ 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;
/*!40101 SET character_set_client = @saved_cs_client */;
@@ -604,33 +510,33 @@ 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) NOT NULL auto_increment,
- `setindex` tinyint(4) NOT NULL default '0',
+ `guid` int(11) NOT NULL DEFAULT '0',
+ `setguid` bigint(20) NOT NULL AUTO_INCREMENT,
+ `setindex` tinyint(4) NOT NULL DEFAULT '0',
`name` varchar(100) NOT NULL,
`iconname` varchar(100) NOT NULL,
- `item0` int(11) NOT NULL default '0',
- `item1` int(11) NOT NULL default '0',
- `item2` int(11) NOT NULL default '0',
- `item3` int(11) NOT NULL default '0',
- `item4` int(11) NOT NULL default '0',
- `item5` int(11) NOT NULL default '0',
- `item6` int(11) NOT NULL default '0',
- `item7` int(11) NOT NULL default '0',
- `item8` int(11) NOT NULL default '0',
- `item9` int(11) NOT NULL default '0',
- `item10` int(11) NOT NULL default '0',
- `item11` int(11) NOT NULL default '0',
- `item12` int(11) NOT NULL default '0',
- `item13` int(11) NOT NULL default '0',
- `item14` int(11) NOT NULL default '0',
- `item15` int(11) NOT NULL default '0',
- `item16` int(11) NOT NULL default '0',
- `item17` int(11) NOT NULL default '0',
- `item18` int(11) NOT NULL default '0',
- PRIMARY KEY (`setguid`),
+ `item0` int(11) NOT NULL DEFAULT '0',
+ `item1` int(11) NOT NULL DEFAULT '0',
+ `item2` int(11) NOT NULL DEFAULT '0',
+ `item3` int(11) NOT NULL DEFAULT '0',
+ `item4` int(11) NOT NULL DEFAULT '0',
+ `item5` int(11) NOT NULL DEFAULT '0',
+ `item6` int(11) NOT NULL DEFAULT '0',
+ `item7` int(11) NOT NULL DEFAULT '0',
+ `item8` int(11) NOT NULL DEFAULT '0',
+ `item9` int(11) NOT NULL DEFAULT '0',
+ `item10` int(11) NOT NULL DEFAULT '0',
+ `item11` int(11) NOT NULL DEFAULT '0',
+ `item12` int(11) NOT NULL DEFAULT '0',
+ `item13` int(11) NOT NULL DEFAULT '0',
+ `item14` int(11) NOT NULL DEFAULT '0',
+ `item15` int(11) NOT NULL DEFAULT '0',
+ `item16` int(11) NOT NULL DEFAULT '0',
+ `item17` int(11) NOT NULL DEFAULT '0',
+ `item18` int(11) 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 */;
@@ -651,11 +557,11 @@ 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 */;
@@ -706,13 +612,13 @@ 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 COMMENT='Player System';
/*!40101 SET character_set_client = @saved_cs_client */;
@@ -733,10 +639,10 @@ 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 */;
@@ -758,11 +664,11 @@ 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',
- 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',
+ PRIMARY KEY (`item`),
KEY `idx_guid` (`guid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Player System';
/*!40101 SET character_set_client = @saved_cs_client */;
@@ -784,26 +690,26 @@ 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',
- `curhappiness` 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',
+ `curhappiness` 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 COMMENT='Pet System';
/*!40101 SET character_set_client = @saved_cs_client */;
@@ -825,15 +731,15 @@ 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;
/*!40101 SET character_set_client = @saved_cs_client */;
@@ -867,7 +773,7 @@ CREATE TABLE `character_queststatus` (
`itemcount2` smallint(3) unsigned NOT NULL DEFAULT '0',
`itemcount3` smallint(3) unsigned NOT NULL DEFAULT '0',
`itemcount4` smallint(3) unsigned NOT NULL DEFAULT '0',
- PRIMARY KEY (`guid`,`quest`)
+ PRIMARY KEY (`guid`,`quest`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Player System';
/*!40101 SET character_set_client = @saved_cs_client */;
@@ -888,10 +794,10 @@ 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',
- `time` bigint(20) 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',
+ `time` bigint(20) unsigned NOT NULL DEFAULT '0',
+ PRIMARY KEY (`guid`,`quest`),
KEY `idx_guid` (`guid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Player System';
/*!40101 SET character_set_client = @saved_cs_client */;
@@ -905,25 +811,43 @@ LOCK TABLES `character_queststatus_daily` WRITE;
/*!40000 ALTER TABLE `character_queststatus_daily` ENABLE KEYS */;
UNLOCK TABLES;
+--
+-- Table structure for table `character_queststatus_rewarded`
+--
+
DROP TABLE IF EXISTS `character_queststatus_rewarded`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `character_queststatus_rewarded` (
- `guid` int(10) unsigned NOT NULL default '0' COMMENT 'Global Unique Identifier',
- `quest` int(10) unsigned NOT NULL default '0' COMMENT 'Quest Identifier',
+ `guid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Global Unique Identifier',
+ `quest` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Quest Identifier',
PRIMARY KEY (`guid`,`quest`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Player System';
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Dumping data for table `character_queststatus_rewarded`
+--
+LOCK TABLES `character_queststatus_rewarded` WRITE;
+/*!40000 ALTER TABLE `character_queststatus_rewarded` DISABLE KEYS */;
+/*!40000 ALTER TABLE `character_queststatus_rewarded` ENABLE KEYS */;
+UNLOCK TABLES;
--
-- Table structure for table `character_queststatus_weekly`
--
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 COMMENT='Player System';
+/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `character_queststatus_weekly`
@@ -942,11 +866,11 @@ 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 COMMENT='Player System';
/*!40101 SET character_set_client = @saved_cs_client */;
@@ -971,7 +895,7 @@ CREATE TABLE `character_skills` (
`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 COMMENT='Player System';
/*!40101 SET character_set_client = @saved_cs_client */;
@@ -992,11 +916,11 @@ 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`),
@@ -1021,11 +945,11 @@ 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`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Player System';
/*!40101 SET character_set_client = @saved_cs_client */;
@@ -1046,11 +970,11 @@ 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 */;
@@ -1068,40 +992,42 @@ 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',
- `maxpower6` int(10) UNSIGNED NOT NULL default '0',
- `maxpower7` 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',
+ `maxpower6` int(10) unsigned NOT NULL DEFAULT '0',
+ `maxpower7` 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`
@@ -1144,18 +1070,18 @@ 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',
- `realmid` int(11) unsigned NOT NULL default '0' COMMENT 'Realm 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`,`realmid`),
- KEY acc_key (`account`)
+ `account` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Account Identifier',
+ `realmid` int(11) unsigned NOT NULL DEFAULT '0' COMMENT 'Realm 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`,`realmid`),
+ KEY `acc_key` (`account`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Player System';
/*!40101 SET character_set_client = @saved_cs_client */;
@@ -1169,6 +1095,100 @@ LOCK TABLES `character_tutorial` WRITE;
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` int(10) 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',
+ `instance_id` int(11) unsigned NOT NULL DEFAULT '0',
+ `instance_mode_mask` tinyint(2) 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',
+ `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,
+ `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',
+ `chosenTitle` int(10) unsigned NOT NULL DEFAULT '0',
+ `knownCurrencies` bigint(20) unsigned NOT NULL DEFAULT '0',
+ `watchedFaction` bigint(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',
+ `power6` int(10) unsigned NOT NULL DEFAULT '0',
+ `power7` int(10) unsigned NOT NULL DEFAULT '0',
+ `latency` int(11) 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,
+ `ammoId` int(10) unsigned NOT NULL DEFAULT '0',
+ `knownTitles` longtext,
+ `actionBars` tinyint(3) unsigned NOT NULL DEFAULT '0',
+ `deleteInfos_Account` int(11) unsigned DEFAULT NULL,
+ `deleteInfos_Name` varchar(12) DEFAULT NULL,
+ `deleteDate` bigint(20) DEFAULT NULL,
+ PRIMARY KEY (`guid`),
+ KEY `idx_account` (`account`),
+ KEY `idx_online` (`online`),
+ KEY `idx_name` (`name`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8 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`
--
@@ -1176,30 +1196,30 @@ 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',
- `zone` int(11) unsigned NOT NULL default '38' COMMENT 'Zone Identifier',
- `map` int(11) unsigned NOT NULL default '0' COMMENT 'Map Identifier',
- `phaseMask` smallint(5) unsigned NOT NULL default '1',
- `displayId` int(10) unsigned NOT NULL default '0',
+ `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',
+ `zone` int(11) unsigned NOT NULL DEFAULT '38' COMMENT 'Zone Identifier',
+ `map` int(11) unsigned NOT NULL DEFAULT '0' COMMENT 'Map Identifier',
+ `phaseMask` smallint(5) unsigned NOT NULL DEFAULT '1',
+ `displayId` int(10) unsigned NOT NULL DEFAULT '0',
`itemCache` text NOT NULL,
- `bytes1` int(10) unsigned NOT NULL default '0',
- `bytes2` int(10) unsigned NOT NULL default '0',
- `guild` int(10) unsigned NOT NULL default '0',
- `flags` int(10) unsigned NOT NULL default '0',
- `dynFlags` int(10) unsigned NOT NULL default '0',
- `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`),
+ `bytes1` int(10) unsigned NOT NULL DEFAULT '0',
+ `bytes2` int(10) unsigned NOT NULL DEFAULT '0',
+ `guild` int(10) unsigned NOT NULL DEFAULT '0',
+ `flags` int(10) unsigned NOT NULL DEFAULT '0',
+ `dynFlags` int(10) unsigned NOT NULL DEFAULT '0',
+ `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 COMMENT='Death System';
/*!40101 SET character_set_client = @saved_cs_client */;
@@ -1213,6 +1233,31 @@ LOCK TABLES `corpse` WRITE;
UNLOCK TABLES;
--
+-- Table structure for table `creature_respawn`
+--
+
+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`),
+ KEY `instance` (`instance`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Grid Loading System';
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
+-- Dumping data for table `creature_respawn`
+--
+
+LOCK TABLES `creature_respawn` WRITE;
+/*!40000 ALTER TABLE `creature_respawn` DISABLE KEYS */;
+/*!40000 ALTER TABLE `creature_respawn` ENABLE KEYS */;
+UNLOCK TABLES;
+
+--
-- Table structure for table `game_event_condition_save`
--
@@ -1221,9 +1266,9 @@ DROP TABLE IF EXISTS `game_event_condition_save`;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `game_event_condition_save` (
`event_id` mediumint(8) unsigned NOT NULL,
- `condition_id` mediumint(8) unsigned NOT NULL default '0',
- `done` float default '0',
- PRIMARY KEY (`event_id`,`condition_id`)
+ `condition_id` mediumint(8) unsigned NOT NULL DEFAULT '0',
+ `done` float DEFAULT '0',
+ PRIMARY KEY (`event_id`,`condition_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
@@ -1245,9 +1290,9 @@ DROP TABLE IF EXISTS `game_event_save`;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `game_event_save` (
`event_id` mediumint(8) unsigned NOT NULL,
- `state` tinyint(3) unsigned NOT NULL default '1',
- `next_start` BIGINT(11) UNSIGNED NOT NULL DEFAULT '0',
- PRIMARY KEY (`event_id`)
+ `state` tinyint(3) unsigned NOT NULL DEFAULT '1',
+ `next_start` bigint(11) unsigned NOT NULL DEFAULT '0',
+ PRIMARY KEY (`event_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
@@ -1261,46 +1306,6 @@ LOCK TABLES `game_event_save` WRITE;
UNLOCK TABLES;
--
--- Table structure for table `gm_subsurveys`
---
-DROP TABLE IF EXISTS `gm_subsurveys`;
-/*!40101 SET @saved_cs_client = @@character_set_client */;
-/*!40101 SET character_set_client = utf8 */;
-CREATE TABLE `gm_subsurveys` (
- `surveyid` int(10) NOT NULL,
- `subsurveyid` int(11) UNSIGNED NOT NULL DEFAULT '0',
- `rank` int(11) UNSIGNED NOT NULL DEFAULT '0',
- `comment` longtext NOT NULL,
- PRIMARY KEY (`surveyid`,`subsurveyid`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Player System';
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Table structure for table `creature_respawn`
---
-
-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`),
- KEY `instance` (`instance`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Grid Loading System';
-/*!40101 SET character_set_client = @saved_cs_client */;
-
---
--- Dumping data for table `creature_respawn`
---
-
-LOCK TABLES `creature_respawn` WRITE;
-/*!40000 ALTER TABLE `creature_respawn` DISABLE KEYS */;
-/*!40000 ALTER TABLE `creature_respawn` ENABLE KEYS */;
-UNLOCK TABLES;
-
---
-- Table structure for table `gameobject_respawn`
--
@@ -1326,6 +1331,22 @@ LOCK TABLES `gameobject_respawn` WRITE;
UNLOCK TABLES;
--
+-- Table structure for table `gm_subsurveys`
+--
+
+DROP TABLE IF EXISTS `gm_subsurveys`;
+/*!40101 SET @saved_cs_client = @@character_set_client */;
+/*!40101 SET character_set_client = utf8 */;
+CREATE TABLE `gm_subsurveys` (
+ `surveyid` int(10) NOT NULL AUTO_INCREMENT,
+ `subsurveyid` int(11) unsigned NOT NULL DEFAULT '0',
+ `rank` int(11) unsigned NOT NULL DEFAULT '0',
+ `comment` longtext NOT NULL,
+ PRIMARY KEY (`surveyid`,`subsurveyid`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Player System';
+/*!40101 SET character_set_client = @saved_cs_client */;
+
+--
-- Dumping data for table `gm_subsurveys`
--
@@ -1337,13 +1358,14 @@ UNLOCK TABLES;
--
-- Table structure for table `gm_surveys`
--
+
DROP TABLE IF EXISTS `gm_surveys`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `gm_surveys` (
- `surveyid` int(10) NOT NULL auto_increment,
- `player` int(11) UNSIGNED NOT NULL DEFAULT '0',
- `mainSurvey` int(11) UNSIGNED NOT NULL DEFAULT '0',
+ `surveyid` int(10) NOT NULL AUTO_INCREMENT,
+ `player` int(11) unsigned NOT NULL DEFAULT '0',
+ `mainSurvey` int(11) unsigned NOT NULL DEFAULT '0',
`overall_comment` longtext NOT NULL,
`timestamp` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`surveyid`)
@@ -1367,23 +1389,23 @@ DROP TABLE IF EXISTS `gm_tickets`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `gm_tickets` (
- `guid` int(10) NOT NULL auto_increment,
- `playerGuid` int(11) unsigned NOT NULL default '0',
+ `guid` int(10) NOT NULL AUTO_INCREMENT,
+ `playerGuid` int(11) unsigned NOT NULL DEFAULT '0',
`name` varchar(15) NOT NULL,
`message` text NOT NULL,
- `createtime` int(10) NOT NULL default '0',
- `map` int NOT NULL DEFAULT '0',
+ `createtime` int(10) NOT NULL DEFAULT '0',
+ `map` int(11) NOT NULL DEFAULT '0',
`posX` float NOT NULL DEFAULT '0',
`posY` float NOT NULL DEFAULT '0',
`posZ` float NOT NULL DEFAULT '0',
- `timestamp` int(10) NOT NULL default '0',
- `closed` int(10) NOT NULL default '0',
- `assignedto` int(10) NOT NULL default '0',
+ `timestamp` int(10) NOT NULL DEFAULT '0',
+ `closed` int(10) NOT NULL DEFAULT '0',
+ `assignedto` int(10) NOT NULL DEFAULT '0',
`comment` text NOT NULL,
`completed` int(11) NOT NULL DEFAULT '0',
`escalated` int(11) NOT NULL DEFAULT '0',
`viewed` int(11) NOT NULL DEFAULT '0',
- PRIMARY KEY (`guid`)
+ PRIMARY KEY (`guid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Player System';
/*!40101 SET character_set_client = @saved_cs_client */;
@@ -1404,10 +1426,10 @@ DROP TABLE IF EXISTS `group_instance`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `group_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 */;
@@ -1430,11 +1452,11 @@ DROP TABLE IF EXISTS `group_member`;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `group_member` (
`guid` int(11) unsigned NOT NULL,
- `memberGuid` int(11) unsigned NOT NULL default '0',
- `memberFlags` tinyint(3) unsigned NOT NULL default '0',
- `subgroup` tinyint(3) unsigned NOT NULL default '0',
- `roles` tinyint(3) unsigned NOT NULL default '0',
- PRIMARY KEY (`memberGuid`)
+ `memberGuid` int(11) unsigned NOT NULL DEFAULT '0',
+ `memberFlags` tinyint(3) unsigned NOT NULL DEFAULT '0',
+ `subgroup` tinyint(3) unsigned NOT NULL DEFAULT '0',
+ `roles` tinyint(3) unsigned NOT NULL DEFAULT '0',
+ PRIMARY KEY (`memberGuid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Groups';
/*!40101 SET character_set_client = @saved_cs_client */;
@@ -1469,8 +1491,8 @@ CREATE TABLE `groups` (
`icon7` int(11) unsigned NOT NULL,
`icon8` int(11) unsigned NOT NULL,
`groupType` mediumint(8) unsigned NOT NULL,
- `difficulty` tinyint(3) unsigned NOT NULL default '0',
- `raiddifficulty` int(11) UNSIGNED NOT NULL default '0',
+ `difficulty` tinyint(3) unsigned NOT NULL DEFAULT '0',
+ `raiddifficulty` int(11) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`guid`),
KEY `leaderGuid` (`leaderGuid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Groups';
@@ -1493,19 +1515,19 @@ 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) NOT NULL default '0',
- `BankMoney` bigint(20) NOT NULL default '0',
- PRIMARY KEY (`guildid`)
+ `motd` varchar(255) NOT NULL DEFAULT '',
+ `createdate` bigint(20) NOT NULL DEFAULT '0',
+ `BankMoney` bigint(20) NOT NULL DEFAULT '0',
+ PRIMARY KEY (`guildid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Guild System';
/*!40101 SET character_set_client = @saved_cs_client */;
@@ -1526,19 +1548,19 @@ 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` smallint(4) 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`)
+ `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` smallint(4) 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`),
+ KEY `Idx_PlayerGuid` (`PlayerGuid`),
+ KEY `Idx_LogGuid` (`LogGuid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
@@ -1559,13 +1581,13 @@ 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',
- PRIMARY KEY (`guildid`,`tabid`,`slotid`),
- KEY `guildid_key` (`guildid`),
- INDEX `Idx_item_guid`(`item_guid`)
+ `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',
+ PRIMARY KEY (`guildid`,`TabId`,`SlotId`),
+ KEY `guildid_key` (`guildid`),
+ KEY `Idx_item_guid` (`item_guid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
@@ -1586,12 +1608,12 @@ 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` tinyint(1) 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` tinyint(1) 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 */;
@@ -1613,12 +1635,12 @@ 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 */;
@@ -1647,11 +1669,11 @@ CREATE TABLE `guild_eventlog` (
`PlayerGuid2` int(11) NOT NULL COMMENT 'Player 2',
`NewRank` tinyint(2) NOT NULL COMMENT 'New rank(in case promotion/demotion)',
`TimeStamp` bigint(20) 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 */;
--
@@ -1671,28 +1693,28 @@ 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 */;
@@ -1713,13 +1735,13 @@ 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` tinyint(1) 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 COMMENT='Guild System';
/*!40101 SET character_set_client = @saved_cs_client */;
@@ -1740,12 +1762,12 @@ 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) NOT NULL default '0',
- `difficulty` tinyint(1) unsigned NOT NULL default '0',
+ `id` int(11) unsigned NOT NULL DEFAULT '0',
+ `map` int(11) unsigned NOT NULL DEFAULT '0',
+ `resettime` bigint(40) NOT NULL DEFAULT '0',
+ `difficulty` tinyint(1) unsigned NOT NULL DEFAULT '0',
`data` longtext,
- PRIMARY KEY (`id`),
+ PRIMARY KEY (`id`),
KEY `map` (`map`),
KEY `resettime` (`resettime`),
KEY `difficulty` (`difficulty`)
@@ -1769,9 +1791,9 @@ 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) NOT NULL default '0',
+ `mapid` int(11) unsigned NOT NULL DEFAULT '0',
+ `difficulty` tinyint(1) unsigned NOT NULL DEFAULT '0',
+ `resettime` bigint(40) NOT NULL DEFAULT '0',
PRIMARY KEY (`mapid`,`difficulty`),
KEY `difficulty` (`difficulty`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
@@ -1794,21 +1816,21 @@ 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',
- `itemEntry` mediumint(8) unsigned NOT NULL default '0',
- `owner_guid` int(11) unsigned NOT NULL default '0',
- `creatorGuid` int(10) unsigned NOT NULL default '0',
- `giftCreatorGuid` int(10) unsigned NOT NULL default '0',
- `count` int(10) unsigned NOT NULL default '1',
- `duration` int(10) unsigned NOT NULL default '0',
+ `guid` int(11) unsigned NOT NULL DEFAULT '0',
+ `itemEntry` mediumint(8) unsigned NOT NULL DEFAULT '0',
+ `owner_guid` int(11) unsigned NOT NULL DEFAULT '0',
+ `creatorGuid` int(10) unsigned NOT NULL DEFAULT '0',
+ `giftCreatorGuid` int(10) unsigned NOT NULL DEFAULT '0',
+ `count` int(10) unsigned NOT NULL DEFAULT '1',
+ `duration` int(10) unsigned NOT NULL DEFAULT '0',
`charges` text NOT NULL,
- `flags` int(10) unsigned NOT NULL default '0',
+ `flags` int(10) unsigned NOT NULL DEFAULT '0',
`enchantments` text NOT NULL,
- `randomPropertyId` int(11) NOT NULL default '0',
- `durability` int(10) unsigned NOT NULL default '0',
- `playedTime` int(10) unsigned NOT NULL default '0',
+ `randomPropertyId` int(11) NOT NULL DEFAULT '0',
+ `durability` int(10) unsigned NOT NULL DEFAULT '0',
+ `playedTime` int(10) unsigned NOT NULL DEFAULT '0',
`text` longtext,
- PRIMARY KEY (`guid`),
+ PRIMARY KEY (`guid`),
KEY `idx_owner_guid` (`owner_guid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Item System';
/*!40101 SET character_set_client = @saved_cs_client */;
@@ -1878,14 +1900,14 @@ DROP TABLE IF EXISTS `lag_reports`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `lag_reports` (
- `report_id` int(10) NOT NULL auto_increment,
- `player` int(11) UNSIGNED NOT NULL DEFAULT '0',
+ `report_id` int(10) NOT NULL AUTO_INCREMENT,
+ `player` int(11) unsigned NOT NULL DEFAULT '0',
`lag_type` int(10) NOT NULL DEFAULT '0',
`map` int(11) NOT NULL DEFAULT '0',
- `posX` float NOT NULL default '0',
- `posY` float NOT NULL default '0',
- `posZ` float NOT NULL default '0',
- PRIMARY KEY (`report_id`)
+ `posX` float NOT NULL DEFAULT '0',
+ `posY` float NOT NULL DEFAULT '0',
+ `posZ` float NOT NULL DEFAULT '0',
+ PRIMARY KEY (`report_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Player System';
/*!40101 SET character_set_client = @saved_cs_client */;
@@ -1906,21 +1928,21 @@ 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) NOT NULL default '0',
- `deliver_time` bigint(40) 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) NOT NULL DEFAULT '0',
+ `deliver_time` bigint(40) 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`),
KEY `idx_receiver` (`receiver`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Mail System';
/*!40101 SET character_set_client = @saved_cs_client */;
@@ -1942,10 +1964,10 @@ 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',
- `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',
+ `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 */;
@@ -1967,22 +1989,22 @@ 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',
- `spell` int(11) unsigned NOT NULL default '0',
- `effect_mask` tinyint(3) unsigned NOT NULL default '0',
- `recalculate_mask` tinyint(3) unsigned NOT NULL default '0',
- `stackcount` tinyint(3) unsigned NOT NULL default '1',
- `amount0` int(11) NOT NULL default '0',
- `amount1` int(11) NOT NULL default '0',
- `amount2` int(11) NOT NULL default '0',
- `base_amount0` int(11) NOT NULL default '0',
- `base_amount1` int(11) NOT NULL default '0',
- `base_amount2` int(11) NOT NULL default '0',
- `maxduration` int(11) NOT NULL default '0',
- `remaintime` int(11) NOT NULL default '0',
- `remaincharges` tinyint(3) unsigned NOT NULL default '0',
- PRIMARY KEY (`guid`,`spell`,`effect_mask`)
+ `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',
+ `spell` int(11) unsigned NOT NULL DEFAULT '0',
+ `effect_mask` tinyint(3) unsigned NOT NULL DEFAULT '0',
+ `recalculate_mask` tinyint(3) unsigned NOT NULL DEFAULT '0',
+ `stackcount` tinyint(3) unsigned NOT NULL DEFAULT '1',
+ `amount0` int(11) NOT NULL DEFAULT '0',
+ `amount1` int(11) NOT NULL DEFAULT '0',
+ `amount2` int(11) NOT NULL DEFAULT '0',
+ `base_amount0` int(11) NOT NULL DEFAULT '0',
+ `base_amount1` int(11) NOT NULL DEFAULT '0',
+ `base_amount2` int(11) NOT NULL DEFAULT '0',
+ `maxduration` int(11) NOT NULL DEFAULT '0',
+ `remaintime` int(11) NOT NULL DEFAULT '0',
+ `remaincharges` tinyint(3) unsigned NOT NULL DEFAULT '0',
+ PRIMARY KEY (`guid`,`spell`,`effect_mask`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Pet System';
/*!40101 SET character_set_client = @saved_cs_client */;
@@ -2003,10 +2025,10 @@ 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 COMMENT='Pet System';
/*!40101 SET character_set_client = @saved_cs_client */;
@@ -2027,10 +2049,10 @@ 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 */;
@@ -2052,10 +2074,10 @@ DROP TABLE IF EXISTS `petition`;
/*!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 '',
+ `type` int(10) unsigned NOT NULL DEFAULT '0',
+ PRIMARY KEY (`ownerguid`,`type`),
UNIQUE KEY `index_ownerguid_petitionguid` (`ownerguid`,`petitionguid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Guild System';
/*!40101 SET character_set_client = @saved_cs_client */;
@@ -2078,13 +2100,13 @@ DROP TABLE IF EXISTS `petition_sign`;
/*!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',
+ `type` int(10) unsigned NOT NULL DEFAULT '0',
+ PRIMARY KEY (`petitionguid`,`playerguid`),
+ KEY `Idx_playerguid` (`playerguid`),
+ KEY `Idx_ownerguid` (`ownerguid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Guild System';
/*!40101 SET character_set_client = @saved_cs_client */;
@@ -2150,10 +2172,10 @@ DROP TABLE IF EXISTS `worldstates`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `worldstates` (
- `entry` mediumint(11) UNSIGNED NOT NULL DEFAULT '0',
- `value` bigint(40) UNSIGNED NOT NULL DEFAULT '0',
+ `entry` mediumint(11) unsigned NOT NULL DEFAULT '0',
+ `value` bigint(40) unsigned NOT NULL DEFAULT '0',
`comment` text,
- PRIMARY KEY (`entry`)
+ PRIMARY KEY (`entry`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Variable Saves';
/*!40101 SET character_set_client = @saved_cs_client */;
@@ -2163,11 +2185,7 @@ CREATE TABLE `worldstates` (
LOCK TABLES `worldstates` WRITE;
/*!40000 ALTER TABLE `worldstates` DISABLE KEYS */;
-INSERT INTO `worldstates` (`entry`,`value`, `comment`) VALUES
-(20001, 0, 'NextArenaPointDistributionTime'),
-(20002, 0, 'NextWeeklyQuestResetTime'),
-(20003, 0, 'NextBGRandomDailyResetTime'),
-(20004, 0, 'cleaning_flags');
+INSERT INTO `worldstates` VALUES (20001,0,'NextArenaPointDistributionTime'),(20002,0,'NextWeeklyQuestResetTime'),(20003,0,'NextBGRandomDailyResetTime'),(20004,0,'cleaning_flags');
/*!40000 ALTER TABLE `worldstates` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
@@ -2180,6 +2198,4 @@ 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
-
--- Updated on 2010-01-29 23:05:45 GMT+1
+-- Dump completed on 2011-01-19 3:23:11