diff options
Diffstat (limited to 'sql/base')
| -rw-r--r-- | sql/base/auth_database.sql | 8 | ||||
| -rw-r--r-- | sql/base/characters_database.sql | 260 | 
2 files changed, 248 insertions, 20 deletions
diff --git a/sql/base/auth_database.sql b/sql/base/auth_database.sql index 9aaadcb55d5..f72d66a2fec 100644 --- a/sql/base/auth_database.sql +++ b/sql/base/auth_database.sql @@ -1,6 +1,6 @@  -- MySQL dump 10.13  Distrib 5.6.9-rc, for Win64 (x86_64)  -- --- Host: localhost    Database: auth +-- Host: localhost    Database: auth_4x  -- ------------------------------------------------------  -- Server version	5.6.9-rc @@ -36,7 +36,7 @@ CREATE TABLE `account` (    `locked` tinyint(3) unsigned NOT NULL DEFAULT '0',    `last_login` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',    `online` tinyint(3) unsigned NOT NULL DEFAULT '0', -  `expansion` tinyint(3) unsigned NOT NULL DEFAULT '2', +  `expansion` tinyint(3) unsigned NOT NULL DEFAULT '3',    `mutetime` bigint(20) NOT NULL DEFAULT '0',    `mutereason` varchar(255) NOT NULL DEFAULT '',    `muteby` varchar(50) NOT NULL DEFAULT '', @@ -438,7 +438,7 @@ CREATE TABLE `realmlist` (    `timezone` tinyint(3) unsigned NOT NULL DEFAULT '0',    `allowedSecurityLevel` tinyint(3) unsigned NOT NULL DEFAULT '0',    `population` float unsigned NOT NULL DEFAULT '0', -  `gamebuild` int(10) unsigned NOT NULL DEFAULT '12340', +  `gamebuild` int(10) unsigned NOT NULL DEFAULT '15595',    PRIMARY KEY (`id`),    UNIQUE KEY `idx_name` (`name`)  ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='Realm System'; @@ -450,7 +450,7 @@ CREATE TABLE `realmlist` (  LOCK TABLES `realmlist` WRITE;  /*!40000 ALTER TABLE `realmlist` DISABLE KEYS */; -INSERT INTO `realmlist` VALUES (1,'Trinity','127.0.0.1','127.0.0.1','255.255.255.0',8085,1,0,1,0,0,12340); +INSERT INTO `realmlist` VALUES (1,'Trinity','127.0.0.1','127.0.0.1','255.255.255.0',8085,1,0,1,0,0,15595);  /*!40000 ALTER TABLE `realmlist` ENABLE KEYS */;  UNLOCK TABLES; diff --git a/sql/base/characters_database.sql b/sql/base/characters_database.sql index 423883a77f4..0f828b08c50 100644 --- a/sql/base/characters_database.sql +++ b/sql/base/characters_database.sql @@ -1,6 +1,6 @@  -- MySQL dump 10.13  Distrib 5.6.9-rc, for Win64 (x86_64)  -- --- Host: localhost    Database: characters +-- Host: localhost    Database: characters_4x  -- ------------------------------------------------------  -- Server version	5.6.9-rc @@ -567,6 +567,67 @@ LOCK TABLES `character_battleground_random` WRITE;  UNLOCK TABLES;  -- +-- Table structure for table `character_cuf_profiles` +-- + +DROP TABLE IF EXISTS `character_cuf_profiles`; +/*!40101 SET @saved_cs_client     = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `character_cuf_profiles` ( +  `guid` int(10) unsigned NOT NULL COMMENT 'Character Guid', +  `id` tinyint(3) unsigned NOT NULL COMMENT 'Profile Id (0-4)', +  `name` varchar(12) NOT NULL COMMENT 'Profile Name', +  `frameHeight` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Profile Frame Height', +  `frameWidth` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Profile Frame Width', +  `sortBy` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT 'Frame Sort By', +  `healthText` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT 'Frame Health Text', +  `boolOptions` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Many Configurable Bool Options', +  `unk146` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT 'Profile Unk Int8', +  `unk147` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT 'Profile Unk Int8', +  `unk148` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT 'Profile Unk Int8', +  `unk150` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Profile Unk Int16', +  `unk152` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Profile Unk Int16', +  `unk154` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT 'Profile Unk Int16', +  PRIMARY KEY (`guid`,`id`), +  KEY `index` (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `character_cuf_profiles` +-- + +LOCK TABLES `character_cuf_profiles` WRITE; +/*!40000 ALTER TABLE `character_cuf_profiles` DISABLE KEYS */; +/*!40000 ALTER TABLE `character_cuf_profiles` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `character_currency` +-- + +DROP TABLE IF EXISTS `character_currency`; +/*!40101 SET @saved_cs_client     = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `character_currency` ( +  `guid` int(10) unsigned NOT NULL, +  `currency` smallint(5) unsigned NOT NULL, +  `total_count` int(10) unsigned NOT NULL, +  `week_count` int(10) unsigned NOT NULL, +  PRIMARY KEY (`guid`,`currency`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `character_currency` +-- + +LOCK TABLES `character_currency` WRITE; +/*!40000 ALTER TABLE `character_currency` DISABLE KEYS */; +/*!40000 ALTER TABLE `character_currency` ENABLE KEYS */; +UNLOCK TABLES; + +--  -- Table structure for table `character_declinedname`  -- @@ -683,6 +744,9 @@ CREATE TABLE `character_glyphs` (    `glyph4` smallint(5) unsigned DEFAULT '0',    `glyph5` smallint(5) unsigned DEFAULT '0',    `glyph6` smallint(5) unsigned DEFAULT '0', +  `glyph7` smallint(5) unsigned DEFAULT '0', +  `glyph8` smallint(5) unsigned DEFAULT '0', +  `glyph9` smallint(5) unsigned DEFAULT '0',    PRIMARY KEY (`guid`,`spec`)  ) ENGINE=InnoDB DEFAULT CHARSET=utf8;  /*!40101 SET character_set_client = @saved_cs_client */; @@ -797,7 +861,6 @@ CREATE TABLE `character_pet` (    `slot` tinyint(3) unsigned NOT NULL DEFAULT '0',    `curhealth` int(10) unsigned NOT NULL DEFAULT '1',    `curmana` int(10) unsigned NOT NULL DEFAULT '0', -  `curhappiness` int(10) unsigned NOT NULL DEFAULT '0',    `savetime` int(10) unsigned NOT NULL DEFAULT '0',    `abdata` text,    PRIMARY KEY (`id`), @@ -1141,8 +1204,6 @@ CREATE TABLE `character_stats` (    `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', @@ -1203,6 +1264,36 @@ LOCK TABLES `character_talent` WRITE;  UNLOCK TABLES;  -- +-- Table structure for table `character_void_storage` +-- + +DROP TABLE IF EXISTS `character_void_storage`; +/*!40101 SET @saved_cs_client     = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `character_void_storage` ( +  `itemId` bigint(20) unsigned NOT NULL, +  `playerGuid` int(10) unsigned NOT NULL, +  `itemEntry` mediumint(8) unsigned NOT NULL, +  `slot` tinyint(3) unsigned NOT NULL, +  `creatorGuid` int(10) unsigned NOT NULL DEFAULT '0', +  `randomProperty` int(10) unsigned NOT NULL DEFAULT '0', +  `suffixFactor` int(10) unsigned NOT NULL DEFAULT '0', +  PRIMARY KEY (`itemId`), +  UNIQUE KEY `idx_player_slot` (`playerGuid`,`slot`), +  KEY `idx_player` (`playerGuid`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `character_void_storage` +-- + +LOCK TABLES `character_void_storage` WRITE; +/*!40000 ALTER TABLE `character_void_storage` DISABLE KEYS */; +/*!40000 ALTER TABLE `character_void_storage` ENABLE KEYS */; +UNLOCK TABLES; + +--  -- Table structure for table `characters`  -- @@ -1213,12 +1304,13 @@ CREATE TABLE `characters` (    `guid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Global Unique Identifier',    `account` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Account Identifier',    `name` varchar(12) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL, +  `slot` tinyint(3) unsigned NOT NULL DEFAULT '0',    `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', +  `money` bigint(20) 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', @@ -1239,6 +1331,7 @@ CREATE TABLE `characters` (    `rest_bonus` float NOT NULL DEFAULT '0',    `resettalents_cost` int(10) unsigned NOT NULL DEFAULT '0',    `resettalents_time` int(10) unsigned NOT NULL DEFAULT '0', +  `talentTree` 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', @@ -1250,15 +1343,10 @@ CREATE TABLE `characters` (    `zone` smallint(5) unsigned NOT NULL DEFAULT '0',    `death_expire_time` int(10) 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` int(10) unsigned NOT NULL DEFAULT '0',    `drunk` tinyint(3) unsigned NOT NULL DEFAULT '0',    `health` int(10) unsigned NOT NULL DEFAULT '0', @@ -1267,17 +1355,15 @@ CREATE TABLE `characters` (    `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` mediumint(8) 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',    `grantableLevels` tinyint(3) unsigned NOT NULL DEFAULT '0', +  `guildId` int(10) unsigned NOT NULL DEFAULT '0',    `deleteInfos_Account` int(10) unsigned DEFAULT NULL,    `deleteInfos_Name` varchar(12) DEFAULT NULL,    `deleteDate` int(10) unsigned DEFAULT NULL, @@ -1317,7 +1403,6 @@ CREATE TABLE `corpse` (    `itemCache` text NOT NULL,    `bytes1` int(10) unsigned NOT NULL DEFAULT '0',    `bytes2` int(10) unsigned NOT NULL DEFAULT '0', -  `guildId` int(10) unsigned NOT NULL DEFAULT '0',    `flags` tinyint(3) unsigned NOT NULL DEFAULT '0',    `dynFlags` tinyint(3) unsigned NOT NULL DEFAULT '0',    `time` int(10) unsigned NOT NULL DEFAULT '0', @@ -1639,6 +1724,9 @@ CREATE TABLE `guild` (    `motd` varchar(128) NOT NULL DEFAULT '',    `createdate` int(10) unsigned NOT NULL DEFAULT '0',    `BankMoney` bigint(20) unsigned NOT NULL DEFAULT '0', +  `level` int(10) unsigned DEFAULT '1', +  `experience` bigint(20) unsigned DEFAULT '0', +  `todayExperience` bigint(20) unsigned DEFAULT '0',    PRIMARY KEY (`guildid`)  ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Guild System';  /*!40101 SET character_set_client = @saved_cs_client */; @@ -1653,6 +1741,57 @@ LOCK TABLES `guild` WRITE;  UNLOCK TABLES;  -- +-- Table structure for table `guild_achievement` +-- + +DROP TABLE IF EXISTS `guild_achievement`; +/*!40101 SET @saved_cs_client     = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `guild_achievement` ( +  `guildId` int(10) unsigned NOT NULL, +  `achievement` smallint(5) unsigned NOT NULL, +  `date` int(10) unsigned NOT NULL DEFAULT '0', +  `guids` text NOT NULL, +  PRIMARY KEY (`guildId`,`achievement`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `guild_achievement` +-- + +LOCK TABLES `guild_achievement` WRITE; +/*!40000 ALTER TABLE `guild_achievement` DISABLE KEYS */; +/*!40000 ALTER TABLE `guild_achievement` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `guild_achievement_progress` +-- + +DROP TABLE IF EXISTS `guild_achievement_progress`; +/*!40101 SET @saved_cs_client     = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `guild_achievement_progress` ( +  `guildId` int(10) unsigned NOT NULL, +  `criteria` smallint(5) unsigned NOT NULL, +  `counter` int(10) unsigned NOT NULL, +  `date` int(10) unsigned NOT NULL DEFAULT '0', +  `completedGuid` int(10) unsigned NOT NULL DEFAULT '0', +  PRIMARY KEY (`guildId`,`criteria`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `guild_achievement_progress` +-- + +LOCK TABLES `guild_achievement_progress` WRITE; +/*!40000 ALTER TABLE `guild_achievement_progress` DISABLE KEYS */; +/*!40000 ALTER TABLE `guild_achievement_progress` ENABLE KEYS */; +UNLOCK TABLES; + +--  -- Table structure for table `guild_bank_eventlog`  -- @@ -1798,6 +1937,62 @@ LOCK TABLES `guild_eventlog` WRITE;  UNLOCK TABLES;  -- +-- Table structure for table `guild_finder_applicant` +-- + +DROP TABLE IF EXISTS `guild_finder_applicant`; +/*!40101 SET @saved_cs_client     = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `guild_finder_applicant` ( +  `guildId` int(10) unsigned DEFAULT NULL, +  `playerGuid` int(10) unsigned DEFAULT NULL, +  `availability` tinyint(3) unsigned DEFAULT '0', +  `classRole` tinyint(3) unsigned DEFAULT '0', +  `interests` tinyint(3) unsigned DEFAULT '0', +  `comment` varchar(255) DEFAULT NULL, +  `submitTime` int(10) unsigned DEFAULT NULL, +  UNIQUE KEY `guildId` (`guildId`,`playerGuid`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `guild_finder_applicant` +-- + +LOCK TABLES `guild_finder_applicant` WRITE; +/*!40000 ALTER TABLE `guild_finder_applicant` DISABLE KEYS */; +/*!40000 ALTER TABLE `guild_finder_applicant` ENABLE KEYS */; +UNLOCK TABLES; + +-- +-- Table structure for table `guild_finder_guild_settings` +-- + +DROP TABLE IF EXISTS `guild_finder_guild_settings`; +/*!40101 SET @saved_cs_client     = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `guild_finder_guild_settings` ( +  `guildId` int(10) unsigned NOT NULL, +  `availability` tinyint(3) unsigned NOT NULL DEFAULT '0', +  `classRoles` tinyint(3) unsigned NOT NULL DEFAULT '0', +  `interests` tinyint(3) unsigned NOT NULL DEFAULT '0', +  `level` tinyint(3) unsigned NOT NULL DEFAULT '1', +  `listed` tinyint(3) unsigned NOT NULL DEFAULT '0', +  `comment` varchar(255) DEFAULT NULL, +  PRIMARY KEY (`guildId`) +) ENGINE=InnoDB DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; + +-- +-- Dumping data for table `guild_finder_guild_settings` +-- + +LOCK TABLES `guild_finder_guild_settings` WRITE; +/*!40000 ALTER TABLE `guild_finder_guild_settings` DISABLE KEYS */; +/*!40000 ALTER TABLE `guild_finder_guild_settings` ENABLE KEYS */; +UNLOCK TABLES; + +--  -- Table structure for table `guild_member`  -- @@ -1840,6 +2035,8 @@ CREATE TABLE `guild_member_withdraw` (    `tab3` int(10) unsigned NOT NULL DEFAULT '0',    `tab4` int(10) unsigned NOT NULL DEFAULT '0',    `tab5` int(10) unsigned NOT NULL DEFAULT '0', +  `tab6` int(10) unsigned NOT NULL DEFAULT '0', +  `tab7` int(10) unsigned NOT NULL DEFAULT '0',    `money` int(10) unsigned NOT NULL DEFAULT '0',    PRIMARY KEY (`guid`)  ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Guild Member Daily Withdraws'; @@ -1855,6 +2052,37 @@ LOCK TABLES `guild_member_withdraw` WRITE;  UNLOCK TABLES;  -- +-- Table structure for table `guild_news_log` +-- + +DROP TABLE IF EXISTS `guild_newslog`; +/*!40101 SET @saved_cs_client     = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `guild_newslog` ( +  `guildid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Guild Identificator', +  `LogGuid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Log record identificator - auxiliary column', +  `EventType` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT 'Event type', +  `PlayerGuid` int(10) unsigned NOT NULL DEFAULT '0', +  `Flags` int(10) unsigned NOT NULL DEFAULT '0', +  `Value` int(10) unsigned NOT NULL DEFAULT '0', +  `TimeStamp` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Event UNIX time', +  PRIMARY KEY (`guildid`,`LogGuid`), +  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 */; + +-- +-- Dumping data for table `guild_newslog` +-- + +LOCK TABLES `guild_newslog` WRITE; +/*!40000 ALTER TABLE `guild_newslog` DISABLE KEYS */; +/*!40000 ALTER TABLE `guild_newslog` ENABLE KEYS */; +UNLOCK TABLES; + +--  -- Table structure for table `guild_rank`  -- @@ -2146,8 +2374,8 @@ CREATE TABLE `mail` (    `has_items` tinyint(3) unsigned NOT NULL DEFAULT '0',    `expire_time` int(10) unsigned NOT NULL DEFAULT '0',    `deliver_time` int(10) unsigned NOT NULL DEFAULT '0', -  `money` int(10) unsigned NOT NULL DEFAULT '0', -  `cod` int(10) unsigned NOT NULL DEFAULT '0', +  `money` bigint(20) unsigned NOT NULL DEFAULT '0', +  `cod` bigint(20) unsigned NOT NULL DEFAULT '0',    `checked` tinyint(3) unsigned NOT NULL DEFAULT '0',    PRIMARY KEY (`id`),    KEY `idx_receiver` (`receiver`)  | 
