2008-10-11 14:16:25 -05:00
|
|
|
-- MySQL dump 10.11
|
|
|
|
|
--
|
2008-12-24 14:21:43 -06:00
|
|
|
-- Host: localhost Database: characters
|
2008-10-11 14:16:25 -05:00
|
|
|
-- ------------------------------------------------------
|
2010-09-10 13:37:33 +02:00
|
|
|
-- Server version 5.0.45-Debian_1ubuntu3.1-log
|
2008-10-11 14:16:25 -05:00
|
|
|
|
|
|
|
|
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
|
|
|
|
|
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
|
|
|
|
|
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
|
|
|
|
|
/*!40101 SET NAMES utf8 */;
|
|
|
|
|
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
|
|
|
|
|
/*!40103 SET TIME_ZONE='+00:00' */;
|
|
|
|
|
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
|
|
|
|
|
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
|
|
|
|
|
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
|
|
|
|
|
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
|
|
|
|
|
|
2008-12-24 09:58:26 -06:00
|
|
|
--
|
|
|
|
|
-- Table structure for table `account_data`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS `account_data`;
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
|
|
|
/*!40101 SET character_set_client = utf8 */;
|
2008-12-24 09:58:26 -06:00
|
|
|
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',
|
* Core switch to client 3.3.2 (11403)
* Credits (in no particular order) to:
* n0n4m3, raczman, manuel, Spp, Malcrom, Teacher, QAston, Tartalo,
* thenecromancer, Xanadu, Trazom, Zor, kiper
* Additional credits to:
* TOM_RUS and NoFantasy from MaNGOS
* Thanks for testing Aokromes and XTElite1
* SoTA still needs some work, but is very playable (huge thanks to raczman and
* kiper)
* To upgrade, you need to apply all SQL from sql/updates/3.2.2a_old from the
* last rev you are on
* and then apply all SQL from sql/updates/3.3.2_old to char / realmd / world
* DBs
* Known problem with guild banks.
--HG--
branch : trunk
2010-02-14 19:13:14 -07:00
|
|
|
`data` longblob NOT NULL,
|
2008-12-24 09:58:26 -06:00
|
|
|
PRIMARY KEY (`account`,`type`)
|
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
2008-12-24 09:58:26 -06:00
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Dumping data for table `account_data`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
LOCK TABLES `account_data` WRITE;
|
|
|
|
|
/*!40000 ALTER TABLE `account_data` DISABLE KEYS */;
|
|
|
|
|
/*!40000 ALTER TABLE `account_data` ENABLE KEYS */;
|
|
|
|
|
UNLOCK TABLES;
|
|
|
|
|
|
2010-01-20 16:24:52 +01:00
|
|
|
--
|
|
|
|
|
-- Table structure for table `addons`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS `addons`;
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
|
|
|
/*!40101 SET character_set_client = utf8 */;
|
2010-01-20 16:24:52 +01:00
|
|
|
CREATE TABLE `addons` (
|
|
|
|
|
`name` varchar(120) NOT NULL default '',
|
2010-03-15 13:24:45 +01:00
|
|
|
`crc` int(32) unsigned NOT NULL default '0',
|
2010-01-20 16:24:52 +01:00
|
|
|
PRIMARY KEY (`name`)
|
Core/DBLayer: Move tables reserved_name, gameobject_respawn and creature_respawn from WORLD database to CHARACTER database as it's content is realm-specific and should be preserved (thanks to leak for the cleanup)
*** TO PRESERVE (COPY) THE DATA CONTAINED IN THE OLD TABLES, YOU MUST FOLLOW THE FOLLOWING SQL-RECIPE (REPLACE DATABASENAMES WHERE NEEDED!) ***
-- Move creature_respawn from world to characters db
INSERT INTO `characters`.`creature_respawn` (`guid`, `respawntime`, `instance`)
SELECT `guid, `respawntime` `instance` * FROM `world`.`creature_respawn`;
-- Remove creature_respawn table from world db
DROP TABLE `world`.`creature_respawn`;
-- Move gameobject_respawn from world to characters db
INSERT INTO `characters`.`gameobject_respawn` (`guid`, `respawntime`, `instance`)
SELECT `guid`, `respawntime`, `instance` FROM `world`.`gameobject_respawn`;
-- Remove creature_respawn table from world db
DROP TABLE `world`.`gameobject_respawn`;
-- Move reserved names from world to characters db
INSERT INTO `characters`.`reserved_name` (`name`)
SELECT `name` FROM `world`.`reserved_name`;
-- Remove reserved_names table from world db
DROP TABLE `world`.`reserved_name`;
*** THE ABOVE MUST BE DONE, OR EXISTING INSTANCES WILL BE FULLY RESPAWNED - YOU HAVE BEEN WARNED ***
Closes issue 4842. Closes issue 4849.
--HG--
branch : trunk
2010-11-19 15:53:14 +01:00
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Addons';
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
2010-01-20 16:24:52 +01:00
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Dumping data for table `addons`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
LOCK TABLES `addons` WRITE;
|
|
|
|
|
/*!40000 ALTER TABLE `addons` DISABLE KEYS */;
|
|
|
|
|
/*!40000 ALTER TABLE `addons` ENABLE KEYS */;
|
|
|
|
|
UNLOCK TABLES;
|
|
|
|
|
|
2008-12-19 16:05:13 -06:00
|
|
|
--
|
2008-10-11 14:16:25 -05:00
|
|
|
-- Table structure for table `arena_team`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS `arena_team`;
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
|
|
|
/*!40101 SET character_set_client = utf8 */;
|
2008-10-11 14:16:25 -05:00
|
|
|
CREATE TABLE `arena_team` (
|
|
|
|
|
`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`)
|
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
2008-10-11 14:16:25 -05:00
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Dumping data for table `arena_team`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
LOCK TABLES `arena_team` WRITE;
|
|
|
|
|
/*!40000 ALTER TABLE `arena_team` DISABLE KEYS */;
|
|
|
|
|
/*!40000 ALTER TABLE `arena_team` ENABLE KEYS */;
|
|
|
|
|
UNLOCK TABLES;
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Table structure for table `arena_team_member`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS `arena_team_member`;
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
|
|
|
/*!40101 SET character_set_client = utf8 */;
|
2008-10-11 14:16:25 -05:00
|
|
|
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',
|
2009-02-20 15:18:23 -06:00
|
|
|
PRIMARY KEY (`arenateamid`,`guid`)
|
2008-10-11 14:16:25 -05:00
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
2008-10-11 14:16:25 -05:00
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Dumping data for table `arena_team_member`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
LOCK TABLES `arena_team_member` WRITE;
|
|
|
|
|
/*!40000 ALTER TABLE `arena_team_member` DISABLE KEYS */;
|
|
|
|
|
/*!40000 ALTER TABLE `arena_team_member` ENABLE KEYS */;
|
|
|
|
|
UNLOCK TABLES;
|
|
|
|
|
|
2010-08-28 14:09:57 +02:00
|
|
|
--
|
|
|
|
|
-- 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;
|
|
|
|
|
|
2008-10-11 14:16:25 -05:00
|
|
|
--
|
|
|
|
|
-- Table structure for table `arena_team_stats`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS `arena_team_stats`;
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
|
|
|
/*!40101 SET character_set_client = utf8 */;
|
2008-10-11 14:16:25 -05:00
|
|
|
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`)
|
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
2008-10-11 14:16:25 -05:00
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Dumping data for table `arena_team_stats`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
LOCK TABLES `arena_team_stats` WRITE;
|
|
|
|
|
/*!40000 ALTER TABLE `arena_team_stats` DISABLE KEYS */;
|
|
|
|
|
/*!40000 ALTER TABLE `arena_team_stats` ENABLE KEYS */;
|
|
|
|
|
UNLOCK TABLES;
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Table structure for table `auctionhouse`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS `auctionhouse`;
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
|
|
|
/*!40101 SET character_set_client = utf8 */;
|
2008-10-11 14:16:25 -05:00
|
|
|
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`),
|
|
|
|
|
UNIQUE KEY `item_guid` (`itemguid`)
|
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
2008-10-11 14:16:25 -05:00
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Dumping data for table `auctionhouse`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
LOCK TABLES `auctionhouse` WRITE;
|
|
|
|
|
/*!40000 ALTER TABLE `auctionhouse` DISABLE KEYS */;
|
|
|
|
|
/*!40000 ALTER TABLE `auctionhouse` ENABLE KEYS */;
|
|
|
|
|
UNLOCK TABLES;
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Table structure for table `bugreport`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS `bugreport`;
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
|
|
|
/*!40101 SET character_set_client = utf8 */;
|
2008-10-11 14:16:25 -05:00
|
|
|
CREATE TABLE `bugreport` (
|
|
|
|
|
`id` int(11) NOT NULL auto_increment COMMENT 'Identifier',
|
2010-02-01 18:52:42 +01:00
|
|
|
`type` longtext NOT NULL default '',
|
|
|
|
|
`content` longtext NOT NULL default '',
|
2008-10-11 14:16:25 -05:00
|
|
|
PRIMARY KEY (`id`)
|
Core/DBLayer: Move tables reserved_name, gameobject_respawn and creature_respawn from WORLD database to CHARACTER database as it's content is realm-specific and should be preserved (thanks to leak for the cleanup)
*** TO PRESERVE (COPY) THE DATA CONTAINED IN THE OLD TABLES, YOU MUST FOLLOW THE FOLLOWING SQL-RECIPE (REPLACE DATABASENAMES WHERE NEEDED!) ***
-- Move creature_respawn from world to characters db
INSERT INTO `characters`.`creature_respawn` (`guid`, `respawntime`, `instance`)
SELECT `guid, `respawntime` `instance` * FROM `world`.`creature_respawn`;
-- Remove creature_respawn table from world db
DROP TABLE `world`.`creature_respawn`;
-- Move gameobject_respawn from world to characters db
INSERT INTO `characters`.`gameobject_respawn` (`guid`, `respawntime`, `instance`)
SELECT `guid`, `respawntime`, `instance` FROM `world`.`gameobject_respawn`;
-- Remove creature_respawn table from world db
DROP TABLE `world`.`gameobject_respawn`;
-- Move reserved names from world to characters db
INSERT INTO `characters`.`reserved_name` (`name`)
SELECT `name` FROM `world`.`reserved_name`;
-- Remove reserved_names table from world db
DROP TABLE `world`.`reserved_name`;
*** THE ABOVE MUST BE DONE, OR EXISTING INSTANCES WILL BE FULLY RESPAWNED - YOU HAVE BEEN WARNED ***
Closes issue 4842. Closes issue 4849.
--HG--
branch : trunk
2010-11-19 15:53:14 +01:00
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Debug System';
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
2008-10-11 14:16:25 -05:00
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Dumping data for table `bugreport`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
LOCK TABLES `bugreport` WRITE;
|
|
|
|
|
/*!40000 ALTER TABLE `bugreport` DISABLE KEYS */;
|
|
|
|
|
/*!40000 ALTER TABLE `bugreport` ENABLE KEYS */;
|
|
|
|
|
UNLOCK TABLES;
|
|
|
|
|
|
2010-02-01 18:52:42 +01:00
|
|
|
--
|
|
|
|
|
-- Table structure for table `channels`
|
|
|
|
|
--
|
|
|
|
|
|
2009-07-21 21:16:30 +02:00
|
|
|
DROP TABLE IF EXISTS `channels`;
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
|
|
|
/*!40101 SET character_set_client = utf8 */;
|
2009-07-21 21:16:30 +02:00
|
|
|
CREATE TABLE `channels` (
|
2010-12-02 03:54:52 +01:00
|
|
|
`m_name` varchar(128) NOT NULL,
|
2009-07-21 21:16:30 +02:00
|
|
|
`m_team` int(10) unsigned NOT NULL,
|
2010-12-02 03:54:52 +01:00
|
|
|
`m_announce` tinyint(3) unsigned NOT NULL default '1',
|
|
|
|
|
`m_ownership` tinyint(3) unsigned NOT NULL default '1',
|
|
|
|
|
`m_password` varchar(32) NULL,
|
2009-07-21 21:16:30 +02:00
|
|
|
`BannedList` longtext,
|
2010-12-02 03:54:52 +01:00
|
|
|
`last_used` INT(10) UNSIGNED NOT NULL,
|
|
|
|
|
PRIMARY KEY (`m_name`,`m_team`)
|
Core/DBLayer: Move tables reserved_name, gameobject_respawn and creature_respawn from WORLD database to CHARACTER database as it's content is realm-specific and should be preserved (thanks to leak for the cleanup)
*** TO PRESERVE (COPY) THE DATA CONTAINED IN THE OLD TABLES, YOU MUST FOLLOW THE FOLLOWING SQL-RECIPE (REPLACE DATABASENAMES WHERE NEEDED!) ***
-- Move creature_respawn from world to characters db
INSERT INTO `characters`.`creature_respawn` (`guid`, `respawntime`, `instance`)
SELECT `guid, `respawntime` `instance` * FROM `world`.`creature_respawn`;
-- Remove creature_respawn table from world db
DROP TABLE `world`.`creature_respawn`;
-- Move gameobject_respawn from world to characters db
INSERT INTO `characters`.`gameobject_respawn` (`guid`, `respawntime`, `instance`)
SELECT `guid`, `respawntime`, `instance` FROM `world`.`gameobject_respawn`;
-- Remove creature_respawn table from world db
DROP TABLE `world`.`gameobject_respawn`;
-- Move reserved names from world to characters db
INSERT INTO `characters`.`reserved_name` (`name`)
SELECT `name` FROM `world`.`reserved_name`;
-- Remove reserved_names table from world db
DROP TABLE `world`.`reserved_name`;
*** THE ABOVE MUST BE DONE, OR EXISTING INSTANCES WILL BE FULLY RESPAWNED - YOU HAVE BEEN WARNED ***
Closes issue 4842. Closes issue 4849.
--HG--
branch : trunk
2010-11-19 15:53:14 +01:00
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Channel System';
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Dumping data for table `channels`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
LOCK TABLES `channels` WRITE;
|
|
|
|
|
/*!40000 ALTER TABLE `channels` DISABLE KEYS */;
|
|
|
|
|
/*!40000 ALTER TABLE `channels` ENABLE KEYS */;
|
|
|
|
|
UNLOCK TABLES;
|
2009-07-21 21:16:30 +02:00
|
|
|
|
2008-12-21 09:33:44 -06:00
|
|
|
--
|
|
|
|
|
-- Table structure for table `characters`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS `characters`;
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
|
|
|
/*!40101 SET character_set_client = utf8 */;
|
2008-12-21 09:33:44 -06:00
|
|
|
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',
|
2009-06-27 17:39:51 -05:00
|
|
|
`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',
|
2008-12-21 09:33:44 -06:00
|
|
|
`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',
|
2009-05-25 13:28:34 +02:00
|
|
|
`instance_id` int(11) unsigned NOT NULL default '0',
|
2010-07-29 18:11:41 +02:00
|
|
|
`instance_mode_mask` tinyint(2) unsigned NOT NULL default '0',
|
2008-12-21 09:33:44 -06:00
|
|
|
`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,
|
2010-03-02 10:12:47 -07:00
|
|
|
`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',
|
2010-03-02 20:21:17 -07:00
|
|
|
`watchedFaction` bigint(10) unsigned NOT NULL default'0',
|
2010-03-02 10:12:47 -07:00
|
|
|
`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',
|
2010-04-11 11:00:02 +04:00
|
|
|
`latency` int(11) unsigned NOT NULL default '0',
|
2009-08-14 17:24:52 -07:00
|
|
|
`speccount` tinyint(3) unsigned NOT NULL default 1,
|
|
|
|
|
`activespec` tinyint(3) unsigned NOT NULL default 0,
|
2010-04-11 11:00:02 +04:00
|
|
|
`exploredZones` longtext,
|
|
|
|
|
`equipmentCache` longtext,
|
|
|
|
|
`ammoId` int(10) UNSIGNED NOT NULL default '0',
|
2010-04-14 21:46:44 +02:00
|
|
|
`knownTitles` longtext,
|
2010-04-16 02:14:21 +02:00
|
|
|
`actionBars` tinyint(3) UNSIGNED NOT NULL default '0',
|
2010-07-21 12:13:23 -06:00
|
|
|
`deleteInfos_Account` int(11) UNSIGNED default NULL,
|
|
|
|
|
`deleteInfos_Name` varchar(12) default NULL,
|
|
|
|
|
`deleteDate` bigint(20) default NULL,
|
2008-12-21 09:33:44 -06:00
|
|
|
PRIMARY KEY (`guid`),
|
|
|
|
|
KEY `idx_account` (`account`),
|
|
|
|
|
KEY `idx_online` (`online`),
|
|
|
|
|
KEY `idx_name` (`name`)
|
Core/DBLayer: Move tables reserved_name, gameobject_respawn and creature_respawn from WORLD database to CHARACTER database as it's content is realm-specific and should be preserved (thanks to leak for the cleanup)
*** TO PRESERVE (COPY) THE DATA CONTAINED IN THE OLD TABLES, YOU MUST FOLLOW THE FOLLOWING SQL-RECIPE (REPLACE DATABASENAMES WHERE NEEDED!) ***
-- Move creature_respawn from world to characters db
INSERT INTO `characters`.`creature_respawn` (`guid`, `respawntime`, `instance`)
SELECT `guid, `respawntime` `instance` * FROM `world`.`creature_respawn`;
-- Remove creature_respawn table from world db
DROP TABLE `world`.`creature_respawn`;
-- Move gameobject_respawn from world to characters db
INSERT INTO `characters`.`gameobject_respawn` (`guid`, `respawntime`, `instance`)
SELECT `guid`, `respawntime`, `instance` FROM `world`.`gameobject_respawn`;
-- Remove creature_respawn table from world db
DROP TABLE `world`.`gameobject_respawn`;
-- Move reserved names from world to characters db
INSERT INTO `characters`.`reserved_name` (`name`)
SELECT `name` FROM `world`.`reserved_name`;
-- Remove reserved_names table from world db
DROP TABLE `world`.`reserved_name`;
*** THE ABOVE MUST BE DONE, OR EXISTING INSTANCES WILL BE FULLY RESPAWNED - YOU HAVE BEEN WARNED ***
Closes issue 4842. Closes issue 4849.
--HG--
branch : trunk
2010-11-19 15:53:14 +01:00
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Player System';
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
2008-12-21 09:33:44 -06:00
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Dumping data for table `characters`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
LOCK TABLES `characters` WRITE;
|
|
|
|
|
/*!40000 ALTER TABLE `characters` DISABLE KEYS */;
|
|
|
|
|
/*!40000 ALTER TABLE `characters` ENABLE KEYS */;
|
|
|
|
|
UNLOCK TABLES;
|
|
|
|
|
|
2009-09-01 16:47:49 -05:00
|
|
|
--
|
|
|
|
|
-- Table structure for table `character_account_data`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS `character_account_data`;
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
|
|
|
/*!40101 SET character_set_client = utf8 */;
|
2009-09-01 16:47:49 -05:00
|
|
|
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',
|
* Core switch to client 3.3.2 (11403)
* Credits (in no particular order) to:
* n0n4m3, raczman, manuel, Spp, Malcrom, Teacher, QAston, Tartalo,
* thenecromancer, Xanadu, Trazom, Zor, kiper
* Additional credits to:
* TOM_RUS and NoFantasy from MaNGOS
* Thanks for testing Aokromes and XTElite1
* SoTA still needs some work, but is very playable (huge thanks to raczman and
* kiper)
* To upgrade, you need to apply all SQL from sql/updates/3.2.2a_old from the
* last rev you are on
* and then apply all SQL from sql/updates/3.3.2_old to char / realmd / world
* DBs
* Known problem with guild banks.
--HG--
branch : trunk
2010-02-14 19:13:14 -07:00
|
|
|
`data` longblob NOT NULL,
|
2009-09-01 16:47:49 -05:00
|
|
|
PRIMARY KEY (`guid`,`type`)
|
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
2009-09-01 16:47:49 -05:00
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Dumping data for table `character_account_data`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
LOCK TABLES `character_account_data` WRITE;
|
|
|
|
|
/*!40000 ALTER TABLE `character_account_data` DISABLE KEYS */;
|
|
|
|
|
/*!40000 ALTER TABLE `character_account_data` ENABLE KEYS */;
|
|
|
|
|
UNLOCK TABLES;
|
|
|
|
|
|
2008-12-24 09:58:26 -06:00
|
|
|
--
|
|
|
|
|
-- Table structure for table `character_achievement`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS `character_achievement`;
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
|
|
|
/*!40101 SET character_set_client = utf8 */;
|
2008-12-24 09:58:26 -06:00
|
|
|
CREATE TABLE `character_achievement` (
|
2009-05-08 19:22:17 -05:00
|
|
|
`guid` int(11) unsigned NOT NULL,
|
|
|
|
|
`achievement` int(11) unsigned NOT NULL,
|
|
|
|
|
`date` bigint(11) unsigned NOT NULL default '0',
|
2008-12-24 09:58:26 -06:00
|
|
|
PRIMARY KEY (`guid`,`achievement`)
|
2009-07-01 18:37:45 -05:00
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
2008-12-24 09:58:26 -06:00
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Dumping data for table `character_achievement`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
LOCK TABLES `character_achievement` WRITE;
|
|
|
|
|
/*!40000 ALTER TABLE `character_achievement` DISABLE KEYS */;
|
|
|
|
|
/*!40000 ALTER TABLE `character_achievement` ENABLE KEYS */;
|
|
|
|
|
UNLOCK TABLES;
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Table structure for table `character_achievement_progress`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS `character_achievement_progress`;
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
|
|
|
/*!40101 SET character_set_client = utf8 */;
|
2008-12-24 09:58:26 -06:00
|
|
|
CREATE TABLE `character_achievement_progress` (
|
2009-05-08 19:22:17 -05:00
|
|
|
`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',
|
2008-12-24 09:58:26 -06:00
|
|
|
PRIMARY KEY (`guid`,`criteria`)
|
2009-07-01 18:37:45 -05:00
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
2008-12-24 09:58:26 -06:00
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Dumping data for table `character_achievement_progress`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
LOCK TABLES `character_achievement_progress` WRITE;
|
|
|
|
|
/*!40000 ALTER TABLE `character_achievement_progress` DISABLE KEYS */;
|
|
|
|
|
/*!40000 ALTER TABLE `character_achievement_progress` ENABLE KEYS */;
|
|
|
|
|
UNLOCK TABLES;
|
|
|
|
|
|
2008-10-11 14:16:25 -05:00
|
|
|
--
|
|
|
|
|
-- Table structure for table `character_action`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS `character_action`;
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
|
|
|
/*!40101 SET character_set_client = utf8 */;
|
2008-10-11 14:16:25 -05:00
|
|
|
CREATE TABLE `character_action` (
|
2009-08-14 17:24:52 -07:00
|
|
|
`guid` int(11) unsigned NOT NULL default '0',
|
|
|
|
|
`spec` tinyint(3) unsigned NOT NULL default '0',
|
2008-10-11 14:16:25 -05:00
|
|
|
`button` tinyint(3) unsigned NOT NULL default '0',
|
2009-07-01 18:07:20 -05:00
|
|
|
`action` int(11) unsigned NOT NULL default '0',
|
2008-10-11 14:16:25 -05:00
|
|
|
`type` tinyint(3) unsigned NOT NULL default '0',
|
2009-08-14 17:24:52 -07:00
|
|
|
PRIMARY KEY (`guid`,`spec`,`button`)
|
Core/DBLayer: Move tables reserved_name, gameobject_respawn and creature_respawn from WORLD database to CHARACTER database as it's content is realm-specific and should be preserved (thanks to leak for the cleanup)
*** TO PRESERVE (COPY) THE DATA CONTAINED IN THE OLD TABLES, YOU MUST FOLLOW THE FOLLOWING SQL-RECIPE (REPLACE DATABASENAMES WHERE NEEDED!) ***
-- Move creature_respawn from world to characters db
INSERT INTO `characters`.`creature_respawn` (`guid`, `respawntime`, `instance`)
SELECT `guid, `respawntime` `instance` * FROM `world`.`creature_respawn`;
-- Remove creature_respawn table from world db
DROP TABLE `world`.`creature_respawn`;
-- Move gameobject_respawn from world to characters db
INSERT INTO `characters`.`gameobject_respawn` (`guid`, `respawntime`, `instance`)
SELECT `guid`, `respawntime`, `instance` FROM `world`.`gameobject_respawn`;
-- Remove creature_respawn table from world db
DROP TABLE `world`.`gameobject_respawn`;
-- Move reserved names from world to characters db
INSERT INTO `characters`.`reserved_name` (`name`)
SELECT `name` FROM `world`.`reserved_name`;
-- Remove reserved_names table from world db
DROP TABLE `world`.`reserved_name`;
*** THE ABOVE MUST BE DONE, OR EXISTING INSTANCES WILL BE FULLY RESPAWNED - YOU HAVE BEEN WARNED ***
Closes issue 4842. Closes issue 4849.
--HG--
branch : trunk
2010-11-19 15:53:14 +01:00
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
2008-10-11 14:16:25 -05:00
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Dumping data for table `character_action`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
LOCK TABLES `character_action` WRITE;
|
|
|
|
|
/*!40000 ALTER TABLE `character_action` DISABLE KEYS */;
|
|
|
|
|
/*!40000 ALTER TABLE `character_action` ENABLE KEYS */;
|
|
|
|
|
UNLOCK TABLES;
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Table structure for table `character_aura`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS `character_aura`;
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
|
|
|
/*!40101 SET character_set_client = utf8 */;
|
2008-10-11 14:16:25 -05:00
|
|
|
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',
|
2010-12-20 14:55:36 +01:00
|
|
|
`item_guid` bigint(20) UNSIGNED NOT NULL DEFAULT '0',
|
2008-10-11 14:16:25 -05:00
|
|
|
`spell` int(11) unsigned NOT NULL default '0',
|
2009-11-01 17:53:07 -08:00
|
|
|
`effect_mask` tinyint(3) unsigned NOT NULL default '0',
|
Update aura system:
* Change system logic - unify Auras, AreaAuras and PersistentAreaAuras:
* Aura has now its owner - which is the WorldObject, which applies aura (creates AuraApplication object) dependant on aura radius, and effect type
* Owner can be Dynobj (DynObjAura class) for PersistentAreaAuras, or Unit (UnitAura class) for Area and nonArea auras
* Aura data is shared for all units which have AuraApplication of the Aura
* Because of that AuraEffect handlers , and periodic tick functions can't modify AuraEffect object (they are const now)
* Remove spell source and AreaAuraEffect classes
* Add AuraEffect::UpdatePeriodic function, to allow periodic aura object modification (target independant)
* Add AuraEffect::CalculateAmount and AuraEffect::CalculateSpellMod function, to allow non-default amount calculation
* AreaAura updates are done in owner _UpdateSpells cycle
* Since now you don't need to wait an aura update cycle to get area aura applied on it's correct target list
* And you can access area aura target list
* Add basic support for aura amount recalculation
* Save recalculation state and base amount of auras to db
* Add AuraEffect::CalculatePeriodic function to determine if aura is periodic, and to set correct tick number after aura is loaded from db
* Add ChangeAmount function in addition to SetAmount function, to allow easy reapplication of AuraEffect handlers on all targets
* Sort aura effect handlers in SpellAuras.cpp and .h by their use
* Add check for already existing aura of that type to some AuraEffect handlers, to prevent incorrect effect removal
* SPELL_AURA_CONVERT_RUNE and MOD_POWER_REGEN and MOD_REGEN hacky handlers are now implemented correctly
* Send aura application client update only once per unit update - prevent unnecesary packet spam
* Fix ByteBuffer::appendPackGUID function - it added additionall 0s at the end of the packet
* Fix memory leak at player creation (not deleted auras)
* Updated some naming conventions (too many to mention)
* Added Unit::GetAuraOfRankedSpell() function
* Remove procflags on aura remove, use Aura::HandleAuraSpecificMods instead
* Added functions to maintain owned auras (GetOwnedAuras, GetOwnedAura, RemoveOwnedAura, etc)
* Implement AURA_INTERRUPT_FLAG_LANDING
* Implement EffectPlayerNotification (thanks to Spp)
* Remove wrong aura 304 handler
* Add better handler for death runes
* Remove unnecesary variables from DynamicObject class, and cleanup related code, link dynobj duration with aura
* Add GetAuraEffectTriggerTarget function in CreatureAi for special target selection for periodic trigger auras used in a script
* Add many assert() procection from idiots using some functions in wrong way
* I am to lazy to write here anything more
Thanks to Visagalis for testing this patch
PS: Do not make patches like this, please
--HG--
branch : trunk
2010-01-10 01:23:15 +01:00
|
|
|
`recalculate_mask` tinyint(3) unsigned NOT NULL default '0',
|
2009-11-01 17:53:07 -08:00
|
|
|
`stackcount` tinyint(3) unsigned NOT NULL default '1',
|
2009-05-04 16:46:57 -04:00
|
|
|
`amount0` int(11) NOT NULL default '0',
|
|
|
|
|
`amount1` int(11) NOT NULL default '0',
|
|
|
|
|
`amount2` int(11) NOT NULL default '0',
|
Update aura system:
* Change system logic - unify Auras, AreaAuras and PersistentAreaAuras:
* Aura has now its owner - which is the WorldObject, which applies aura (creates AuraApplication object) dependant on aura radius, and effect type
* Owner can be Dynobj (DynObjAura class) for PersistentAreaAuras, or Unit (UnitAura class) for Area and nonArea auras
* Aura data is shared for all units which have AuraApplication of the Aura
* Because of that AuraEffect handlers , and periodic tick functions can't modify AuraEffect object (they are const now)
* Remove spell source and AreaAuraEffect classes
* Add AuraEffect::UpdatePeriodic function, to allow periodic aura object modification (target independant)
* Add AuraEffect::CalculateAmount and AuraEffect::CalculateSpellMod function, to allow non-default amount calculation
* AreaAura updates are done in owner _UpdateSpells cycle
* Since now you don't need to wait an aura update cycle to get area aura applied on it's correct target list
* And you can access area aura target list
* Add basic support for aura amount recalculation
* Save recalculation state and base amount of auras to db
* Add AuraEffect::CalculatePeriodic function to determine if aura is periodic, and to set correct tick number after aura is loaded from db
* Add ChangeAmount function in addition to SetAmount function, to allow easy reapplication of AuraEffect handlers on all targets
* Sort aura effect handlers in SpellAuras.cpp and .h by their use
* Add check for already existing aura of that type to some AuraEffect handlers, to prevent incorrect effect removal
* SPELL_AURA_CONVERT_RUNE and MOD_POWER_REGEN and MOD_REGEN hacky handlers are now implemented correctly
* Send aura application client update only once per unit update - prevent unnecesary packet spam
* Fix ByteBuffer::appendPackGUID function - it added additionall 0s at the end of the packet
* Fix memory leak at player creation (not deleted auras)
* Updated some naming conventions (too many to mention)
* Added Unit::GetAuraOfRankedSpell() function
* Remove procflags on aura remove, use Aura::HandleAuraSpecificMods instead
* Added functions to maintain owned auras (GetOwnedAuras, GetOwnedAura, RemoveOwnedAura, etc)
* Implement AURA_INTERRUPT_FLAG_LANDING
* Implement EffectPlayerNotification (thanks to Spp)
* Remove wrong aura 304 handler
* Add better handler for death runes
* Remove unnecesary variables from DynamicObject class, and cleanup related code, link dynobj duration with aura
* Add GetAuraEffectTriggerTarget function in CreatureAi for special target selection for periodic trigger auras used in a script
* Add many assert() procection from idiots using some functions in wrong way
* I am to lazy to write here anything more
Thanks to Visagalis for testing this patch
PS: Do not make patches like this, please
--HG--
branch : trunk
2010-01-10 01:23:15 +01:00
|
|
|
`base_amount0` int(11) NOT NULL default '0',
|
|
|
|
|
`base_amount1` int(11) NOT NULL default '0',
|
|
|
|
|
`base_amount2` int(11) NOT NULL default '0',
|
2008-10-11 14:16:25 -05:00
|
|
|
`maxduration` int(11) NOT NULL default '0',
|
|
|
|
|
`remaintime` int(11) NOT NULL default '0',
|
2009-11-01 17:53:07 -08:00
|
|
|
`remaincharges` tinyint(3) unsigned NOT NULL default '0',
|
2010-12-20 14:55:36 +01:00
|
|
|
PRIMARY KEY (`guid`,`caster_guid`,`item_guid`,`spell`,`effect_mask`)
|
Core/DBLayer: Move tables reserved_name, gameobject_respawn and creature_respawn from WORLD database to CHARACTER database as it's content is realm-specific and should be preserved (thanks to leak for the cleanup)
*** TO PRESERVE (COPY) THE DATA CONTAINED IN THE OLD TABLES, YOU MUST FOLLOW THE FOLLOWING SQL-RECIPE (REPLACE DATABASENAMES WHERE NEEDED!) ***
-- Move creature_respawn from world to characters db
INSERT INTO `characters`.`creature_respawn` (`guid`, `respawntime`, `instance`)
SELECT `guid, `respawntime` `instance` * FROM `world`.`creature_respawn`;
-- Remove creature_respawn table from world db
DROP TABLE `world`.`creature_respawn`;
-- Move gameobject_respawn from world to characters db
INSERT INTO `characters`.`gameobject_respawn` (`guid`, `respawntime`, `instance`)
SELECT `guid`, `respawntime`, `instance` FROM `world`.`gameobject_respawn`;
-- Remove creature_respawn table from world db
DROP TABLE `world`.`gameobject_respawn`;
-- Move reserved names from world to characters db
INSERT INTO `characters`.`reserved_name` (`name`)
SELECT `name` FROM `world`.`reserved_name`;
-- Remove reserved_names table from world db
DROP TABLE `world`.`reserved_name`;
*** THE ABOVE MUST BE DONE, OR EXISTING INSTANCES WILL BE FULLY RESPAWNED - YOU HAVE BEEN WARNED ***
Closes issue 4842. Closes issue 4849.
--HG--
branch : trunk
2010-11-19 15:53:14 +01:00
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Player System';
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
2008-10-11 14:16:25 -05:00
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Dumping data for table `character_aura`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
LOCK TABLES `character_aura` WRITE;
|
|
|
|
|
/*!40000 ALTER TABLE `character_aura` DISABLE KEYS */;
|
|
|
|
|
/*!40000 ALTER TABLE `character_aura` ENABLE KEYS */;
|
|
|
|
|
UNLOCK TABLES;
|
|
|
|
|
|
2010-09-19 17:02:14 +02:00
|
|
|
--
|
|
|
|
|
-- Table structure for table `character_banned`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
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',
|
|
|
|
|
`bannedby` varchar(50) NOT NULL,
|
|
|
|
|
`banreason` varchar(255) NOT NULL,
|
|
|
|
|
`active` tinyint(4) NOT NULL default '1',
|
|
|
|
|
PRIMARY KEY (`guid`,`bandate`)
|
Core/DBLayer: Move tables reserved_name, gameobject_respawn and creature_respawn from WORLD database to CHARACTER database as it's content is realm-specific and should be preserved (thanks to leak for the cleanup)
*** TO PRESERVE (COPY) THE DATA CONTAINED IN THE OLD TABLES, YOU MUST FOLLOW THE FOLLOWING SQL-RECIPE (REPLACE DATABASENAMES WHERE NEEDED!) ***
-- Move creature_respawn from world to characters db
INSERT INTO `characters`.`creature_respawn` (`guid`, `respawntime`, `instance`)
SELECT `guid, `respawntime` `instance` * FROM `world`.`creature_respawn`;
-- Remove creature_respawn table from world db
DROP TABLE `world`.`creature_respawn`;
-- Move gameobject_respawn from world to characters db
INSERT INTO `characters`.`gameobject_respawn` (`guid`, `respawntime`, `instance`)
SELECT `guid`, `respawntime`, `instance` FROM `world`.`gameobject_respawn`;
-- Remove creature_respawn table from world db
DROP TABLE `world`.`gameobject_respawn`;
-- Move reserved names from world to characters db
INSERT INTO `characters`.`reserved_name` (`name`)
SELECT `name` FROM `world`.`reserved_name`;
-- Remove reserved_names table from world db
DROP TABLE `world`.`reserved_name`;
*** THE ABOVE MUST BE DONE, OR EXISTING INSTANCES WILL BE FULLY RESPAWNED - YOU HAVE BEEN WARNED ***
Closes issue 4842. Closes issue 4849.
--HG--
branch : trunk
2010-11-19 15:53:14 +01:00
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Ban List';
|
2010-09-19 17:02:14 +02:00
|
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Dumping data for table `character_banned`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
LOCK TABLES `character_banned` WRITE;
|
|
|
|
|
/*!40000 ALTER TABLE `character_banned` DISABLE KEYS */;
|
|
|
|
|
/*!40000 ALTER TABLE `character_banned` ENABLE KEYS */;
|
|
|
|
|
UNLOCK TABLES;
|
|
|
|
|
|
2009-08-12 20:27:00 -05:00
|
|
|
--
|
|
|
|
|
-- Table structure for table `character_battleground_data`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS `character_battleground_data`;
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
|
|
|
/*!40101 SET character_set_client = utf8 */;
|
2009-08-12 20:27:00 -05:00
|
|
|
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`)
|
Core/DBLayer: Move tables reserved_name, gameobject_respawn and creature_respawn from WORLD database to CHARACTER database as it's content is realm-specific and should be preserved (thanks to leak for the cleanup)
*** TO PRESERVE (COPY) THE DATA CONTAINED IN THE OLD TABLES, YOU MUST FOLLOW THE FOLLOWING SQL-RECIPE (REPLACE DATABASENAMES WHERE NEEDED!) ***
-- Move creature_respawn from world to characters db
INSERT INTO `characters`.`creature_respawn` (`guid`, `respawntime`, `instance`)
SELECT `guid, `respawntime` `instance` * FROM `world`.`creature_respawn`;
-- Remove creature_respawn table from world db
DROP TABLE `world`.`creature_respawn`;
-- Move gameobject_respawn from world to characters db
INSERT INTO `characters`.`gameobject_respawn` (`guid`, `respawntime`, `instance`)
SELECT `guid`, `respawntime`, `instance` FROM `world`.`gameobject_respawn`;
-- Remove creature_respawn table from world db
DROP TABLE `world`.`gameobject_respawn`;
-- Move reserved names from world to characters db
INSERT INTO `characters`.`reserved_name` (`name`)
SELECT `name` FROM `world`.`reserved_name`;
-- Remove reserved_names table from world db
DROP TABLE `world`.`reserved_name`;
*** THE ABOVE MUST BE DONE, OR EXISTING INSTANCES WILL BE FULLY RESPAWNED - YOU HAVE BEEN WARNED ***
Closes issue 4842. Closes issue 4849.
--HG--
branch : trunk
2010-11-19 15:53:14 +01:00
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Player System';
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
2009-08-12 20:27:00 -05:00
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Dumping data for table `character_battleground_data`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
LOCK TABLES `character_battleground_data` WRITE;
|
|
|
|
|
/*!40000 ALTER TABLE `character_battleground_data` DISABLE KEYS */;
|
|
|
|
|
/*!40000 ALTER TABLE `character_battleground_data` ENABLE KEYS */;
|
|
|
|
|
UNLOCK TABLES;
|
|
|
|
|
|
2010-05-26 11:34:37 +02:00
|
|
|
--
|
|
|
|
|
-- Table structure for table `character_battleground_random`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
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`)
|
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
|
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Dumping data for table `character_battleground_random`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
LOCK TABLES `character_battleground_random` WRITE;
|
|
|
|
|
/*!40000 ALTER TABLE `character_battleground_random` DISABLE KEYS */;
|
|
|
|
|
/*!40000 ALTER TABLE `character_battleground_random` ENABLE KEYS */;
|
|
|
|
|
UNLOCK TABLES;
|
|
|
|
|
|
2008-10-11 14:16:25 -05:00
|
|
|
--
|
|
|
|
|
-- Table structure for table `character_declinedname`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS `character_declinedname`;
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
|
|
|
/*!40101 SET character_set_client = utf8 */;
|
2008-10-11 14:16:25 -05:00
|
|
|
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`)
|
Core/DBLayer: Move tables reserved_name, gameobject_respawn and creature_respawn from WORLD database to CHARACTER database as it's content is realm-specific and should be preserved (thanks to leak for the cleanup)
*** TO PRESERVE (COPY) THE DATA CONTAINED IN THE OLD TABLES, YOU MUST FOLLOW THE FOLLOWING SQL-RECIPE (REPLACE DATABASENAMES WHERE NEEDED!) ***
-- Move creature_respawn from world to characters db
INSERT INTO `characters`.`creature_respawn` (`guid`, `respawntime`, `instance`)
SELECT `guid, `respawntime` `instance` * FROM `world`.`creature_respawn`;
-- Remove creature_respawn table from world db
DROP TABLE `world`.`creature_respawn`;
-- Move gameobject_respawn from world to characters db
INSERT INTO `characters`.`gameobject_respawn` (`guid`, `respawntime`, `instance`)
SELECT `guid`, `respawntime`, `instance` FROM `world`.`gameobject_respawn`;
-- Remove creature_respawn table from world db
DROP TABLE `world`.`gameobject_respawn`;
-- Move reserved names from world to characters db
INSERT INTO `characters`.`reserved_name` (`name`)
SELECT `name` FROM `world`.`reserved_name`;
-- Remove reserved_names table from world db
DROP TABLE `world`.`reserved_name`;
*** THE ABOVE MUST BE DONE, OR EXISTING INSTANCES WILL BE FULLY RESPAWNED - YOU HAVE BEEN WARNED ***
Closes issue 4842. Closes issue 4849.
--HG--
branch : trunk
2010-11-19 15:53:14 +01:00
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
2008-10-11 14:16:25 -05:00
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Dumping data for table `character_declinedname`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
LOCK TABLES `character_declinedname` WRITE;
|
|
|
|
|
/*!40000 ALTER TABLE `character_declinedname` DISABLE KEYS */;
|
|
|
|
|
/*!40000 ALTER TABLE `character_declinedname` ENABLE KEYS */;
|
|
|
|
|
UNLOCK TABLES;
|
|
|
|
|
|
2009-06-11 19:48:53 -05:00
|
|
|
--
|
|
|
|
|
-- Table structure for table `character_equipmentsets`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS `character_equipmentsets`;
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
|
|
|
/*!40101 SET character_set_client = utf8 */;
|
2009-06-11 19:48:53 -05:00
|
|
|
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',
|
|
|
|
|
`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`),
|
2010-04-14 13:02:05 +04:00
|
|
|
UNIQUE KEY `idx_set` (`guid`,`setguid`,`setindex`),
|
|
|
|
|
INDEX `Idx_setindex` (`setindex`)
|
2009-06-11 19:48:53 -05:00
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
2009-06-11 19:48:53 -05:00
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Dumping data for table `character_equipmentsets`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
LOCK TABLES `character_equipmentsets` WRITE;
|
|
|
|
|
/*!40000 ALTER TABLE `character_equipmentsets` DISABLE KEYS */;
|
|
|
|
|
/*!40000 ALTER TABLE `character_equipmentsets` ENABLE KEYS */;
|
|
|
|
|
UNLOCK TABLES;
|
|
|
|
|
|
2008-10-11 14:16:25 -05:00
|
|
|
--
|
|
|
|
|
-- Table structure for table `character_gifts`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS `character_gifts`;
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
|
|
|
/*!40101 SET character_set_client = utf8 */;
|
2008-10-11 14:16:25 -05:00
|
|
|
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`),
|
|
|
|
|
KEY `idx_guid` (`guid`)
|
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
2008-10-11 14:16:25 -05:00
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Dumping data for table `character_gifts`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
LOCK TABLES `character_gifts` WRITE;
|
|
|
|
|
/*!40000 ALTER TABLE `character_gifts` DISABLE KEYS */;
|
|
|
|
|
/*!40000 ALTER TABLE `character_gifts` ENABLE KEYS */;
|
|
|
|
|
UNLOCK TABLES;
|
|
|
|
|
|
2009-08-14 17:24:52 -07:00
|
|
|
--
|
|
|
|
|
-- Table structure for table `character_glyphs`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS `character_glyphs`;
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
|
|
|
/*!40101 SET character_set_client = utf8 */;
|
2009-08-14 17:24:52 -07:00
|
|
|
CREATE TABLE `character_glyphs` (
|
|
|
|
|
`guid` int(11) unsigned NOT NULL,
|
|
|
|
|
`spec` tinyint(3) unsigned NOT NULL DEFAULT '0',
|
|
|
|
|
`glyph1` int(11) unsigned NOT NULL DEFAULT '0',
|
|
|
|
|
`glyph2` int(11) unsigned DEFAULT '0',
|
|
|
|
|
`glyph3` int(11) unsigned DEFAULT '0',
|
|
|
|
|
`glyph4` int(11) unsigned DEFAULT '0',
|
|
|
|
|
`glyph5` int(11) unsigned DEFAULT '0',
|
|
|
|
|
`glyph6` int(11) unsigned DEFAULT '0',
|
|
|
|
|
PRIMARY KEY (`guid`,`spec`)
|
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
2009-08-14 17:24:52 -07:00
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Dumping data for table `character_glyphs`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
LOCK TABLES `character_glyphs` WRITE;
|
|
|
|
|
/*!40000 ALTER TABLE `character_glyphs` DISABLE KEYS */;
|
|
|
|
|
/*!40000 ALTER TABLE `character_glyphs` ENABLE KEYS */;
|
|
|
|
|
UNLOCK TABLES;
|
|
|
|
|
|
2008-10-11 14:16:25 -05:00
|
|
|
--
|
|
|
|
|
-- Table structure for table `character_homebind`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS `character_homebind`;
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
|
|
|
/*!40101 SET character_set_client = utf8 */;
|
2008-10-11 14:16:25 -05:00
|
|
|
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`)
|
Core/DBLayer: Move tables reserved_name, gameobject_respawn and creature_respawn from WORLD database to CHARACTER database as it's content is realm-specific and should be preserved (thanks to leak for the cleanup)
*** TO PRESERVE (COPY) THE DATA CONTAINED IN THE OLD TABLES, YOU MUST FOLLOW THE FOLLOWING SQL-RECIPE (REPLACE DATABASENAMES WHERE NEEDED!) ***
-- Move creature_respawn from world to characters db
INSERT INTO `characters`.`creature_respawn` (`guid`, `respawntime`, `instance`)
SELECT `guid, `respawntime` `instance` * FROM `world`.`creature_respawn`;
-- Remove creature_respawn table from world db
DROP TABLE `world`.`creature_respawn`;
-- Move gameobject_respawn from world to characters db
INSERT INTO `characters`.`gameobject_respawn` (`guid`, `respawntime`, `instance`)
SELECT `guid`, `respawntime`, `instance` FROM `world`.`gameobject_respawn`;
-- Remove creature_respawn table from world db
DROP TABLE `world`.`gameobject_respawn`;
-- Move reserved names from world to characters db
INSERT INTO `characters`.`reserved_name` (`name`)
SELECT `name` FROM `world`.`reserved_name`;
-- Remove reserved_names table from world db
DROP TABLE `world`.`reserved_name`;
*** THE ABOVE MUST BE DONE, OR EXISTING INSTANCES WILL BE FULLY RESPAWNED - YOU HAVE BEEN WARNED ***
Closes issue 4842. Closes issue 4849.
--HG--
branch : trunk
2010-11-19 15:53:14 +01:00
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Player System';
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
2008-10-11 14:16:25 -05:00
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Dumping data for table `character_homebind`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
LOCK TABLES `character_homebind` WRITE;
|
|
|
|
|
/*!40000 ALTER TABLE `character_homebind` DISABLE KEYS */;
|
|
|
|
|
/*!40000 ALTER TABLE `character_homebind` ENABLE KEYS */;
|
|
|
|
|
UNLOCK TABLES;
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Table structure for table `character_instance`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS `character_instance`;
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
|
|
|
/*!40101 SET character_set_client = utf8 */;
|
2008-10-11 14:16:25 -05:00
|
|
|
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`),
|
|
|
|
|
KEY `instance` (`instance`)
|
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
2008-10-11 14:16:25 -05:00
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Dumping data for table `character_instance`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
LOCK TABLES `character_instance` WRITE;
|
|
|
|
|
/*!40000 ALTER TABLE `character_instance` DISABLE KEYS */;
|
|
|
|
|
/*!40000 ALTER TABLE `character_instance` ENABLE KEYS */;
|
|
|
|
|
UNLOCK TABLES;
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Table structure for table `character_inventory`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS `character_inventory`;
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
|
|
|
/*!40101 SET character_set_client = utf8 */;
|
2008-10-11 14:16:25 -05:00
|
|
|
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`),
|
|
|
|
|
KEY `idx_guid` (`guid`)
|
Core/DBLayer: Move tables reserved_name, gameobject_respawn and creature_respawn from WORLD database to CHARACTER database as it's content is realm-specific and should be preserved (thanks to leak for the cleanup)
*** TO PRESERVE (COPY) THE DATA CONTAINED IN THE OLD TABLES, YOU MUST FOLLOW THE FOLLOWING SQL-RECIPE (REPLACE DATABASENAMES WHERE NEEDED!) ***
-- Move creature_respawn from world to characters db
INSERT INTO `characters`.`creature_respawn` (`guid`, `respawntime`, `instance`)
SELECT `guid, `respawntime` `instance` * FROM `world`.`creature_respawn`;
-- Remove creature_respawn table from world db
DROP TABLE `world`.`creature_respawn`;
-- Move gameobject_respawn from world to characters db
INSERT INTO `characters`.`gameobject_respawn` (`guid`, `respawntime`, `instance`)
SELECT `guid`, `respawntime`, `instance` FROM `world`.`gameobject_respawn`;
-- Remove creature_respawn table from world db
DROP TABLE `world`.`gameobject_respawn`;
-- Move reserved names from world to characters db
INSERT INTO `characters`.`reserved_name` (`name`)
SELECT `name` FROM `world`.`reserved_name`;
-- Remove reserved_names table from world db
DROP TABLE `world`.`reserved_name`;
*** THE ABOVE MUST BE DONE, OR EXISTING INSTANCES WILL BE FULLY RESPAWNED - YOU HAVE BEEN WARNED ***
Closes issue 4842. Closes issue 4849.
--HG--
branch : trunk
2010-11-19 15:53:14 +01:00
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Player System';
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
2008-10-11 14:16:25 -05:00
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Dumping data for table `character_inventory`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
LOCK TABLES `character_inventory` WRITE;
|
|
|
|
|
/*!40000 ALTER TABLE `character_inventory` DISABLE KEYS */;
|
|
|
|
|
/*!40000 ALTER TABLE `character_inventory` ENABLE KEYS */;
|
|
|
|
|
UNLOCK TABLES;
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Table structure for table `character_pet`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS `character_pet`;
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
|
|
|
/*!40101 SET character_set_client = utf8 */;
|
2008-10-11 14:16:25 -05:00
|
|
|
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',
|
|
|
|
|
`abdata` longtext,
|
|
|
|
|
PRIMARY KEY (`id`),
|
|
|
|
|
KEY `owner` (`owner`)
|
Core/DBLayer: Move tables reserved_name, gameobject_respawn and creature_respawn from WORLD database to CHARACTER database as it's content is realm-specific and should be preserved (thanks to leak for the cleanup)
*** TO PRESERVE (COPY) THE DATA CONTAINED IN THE OLD TABLES, YOU MUST FOLLOW THE FOLLOWING SQL-RECIPE (REPLACE DATABASENAMES WHERE NEEDED!) ***
-- Move creature_respawn from world to characters db
INSERT INTO `characters`.`creature_respawn` (`guid`, `respawntime`, `instance`)
SELECT `guid, `respawntime` `instance` * FROM `world`.`creature_respawn`;
-- Remove creature_respawn table from world db
DROP TABLE `world`.`creature_respawn`;
-- Move gameobject_respawn from world to characters db
INSERT INTO `characters`.`gameobject_respawn` (`guid`, `respawntime`, `instance`)
SELECT `guid`, `respawntime`, `instance` FROM `world`.`gameobject_respawn`;
-- Remove creature_respawn table from world db
DROP TABLE `world`.`gameobject_respawn`;
-- Move reserved names from world to characters db
INSERT INTO `characters`.`reserved_name` (`name`)
SELECT `name` FROM `world`.`reserved_name`;
-- Remove reserved_names table from world db
DROP TABLE `world`.`reserved_name`;
*** THE ABOVE MUST BE DONE, OR EXISTING INSTANCES WILL BE FULLY RESPAWNED - YOU HAVE BEEN WARNED ***
Closes issue 4842. Closes issue 4849.
--HG--
branch : trunk
2010-11-19 15:53:14 +01:00
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Pet System';
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
2008-10-11 14:16:25 -05:00
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Dumping data for table `character_pet`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
LOCK TABLES `character_pet` WRITE;
|
|
|
|
|
/*!40000 ALTER TABLE `character_pet` DISABLE KEYS */;
|
|
|
|
|
/*!40000 ALTER TABLE `character_pet` ENABLE KEYS */;
|
|
|
|
|
UNLOCK TABLES;
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Table structure for table `character_pet_declinedname`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS `character_pet_declinedname`;
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
|
|
|
/*!40101 SET character_set_client = utf8 */;
|
2008-10-11 14:16:25 -05:00
|
|
|
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`),
|
2008-12-21 09:33:44 -06:00
|
|
|
KEY owner_key (`owner`)
|
Core/DBLayer: Move tables reserved_name, gameobject_respawn and creature_respawn from WORLD database to CHARACTER database as it's content is realm-specific and should be preserved (thanks to leak for the cleanup)
*** TO PRESERVE (COPY) THE DATA CONTAINED IN THE OLD TABLES, YOU MUST FOLLOW THE FOLLOWING SQL-RECIPE (REPLACE DATABASENAMES WHERE NEEDED!) ***
-- Move creature_respawn from world to characters db
INSERT INTO `characters`.`creature_respawn` (`guid`, `respawntime`, `instance`)
SELECT `guid, `respawntime` `instance` * FROM `world`.`creature_respawn`;
-- Remove creature_respawn table from world db
DROP TABLE `world`.`creature_respawn`;
-- Move gameobject_respawn from world to characters db
INSERT INTO `characters`.`gameobject_respawn` (`guid`, `respawntime`, `instance`)
SELECT `guid`, `respawntime`, `instance` FROM `world`.`gameobject_respawn`;
-- Remove creature_respawn table from world db
DROP TABLE `world`.`gameobject_respawn`;
-- Move reserved names from world to characters db
INSERT INTO `characters`.`reserved_name` (`name`)
SELECT `name` FROM `world`.`reserved_name`;
-- Remove reserved_names table from world db
DROP TABLE `world`.`reserved_name`;
*** THE ABOVE MUST BE DONE, OR EXISTING INSTANCES WILL BE FULLY RESPAWNED - YOU HAVE BEEN WARNED ***
Closes issue 4842. Closes issue 4849.
--HG--
branch : trunk
2010-11-19 15:53:14 +01:00
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
2008-10-11 14:16:25 -05:00
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Dumping data for table `character_pet_declinedname`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
LOCK TABLES `character_pet_declinedname` WRITE;
|
|
|
|
|
/*!40000 ALTER TABLE `character_pet_declinedname` DISABLE KEYS */;
|
|
|
|
|
/*!40000 ALTER TABLE `character_pet_declinedname` ENABLE KEYS */;
|
|
|
|
|
UNLOCK TABLES;
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Table structure for table `character_queststatus`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS `character_queststatus`;
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
|
|
|
/*!40101 SET character_set_client = utf8 */;
|
2008-10-11 14:16:25 -05:00
|
|
|
CREATE TABLE `character_queststatus` (
|
2010-09-27 00:38:22 +03:00
|
|
|
`guid` int(11) unsigned NOT NULL DEFAULT '0' COMMENT 'Global Unique Identifier',
|
|
|
|
|
`quest` int(11) unsigned NOT NULL DEFAULT '0' COMMENT 'Quest Identifier',
|
|
|
|
|
`status` tinyint(1) unsigned NOT NULL DEFAULT '0',
|
|
|
|
|
`rewarded` tinyint(1) unsigned NOT NULL DEFAULT '0',
|
|
|
|
|
`explored` tinyint(1) unsigned NOT NULL DEFAULT '0',
|
|
|
|
|
`timer` bigint(20) unsigned NOT NULL DEFAULT '0',
|
|
|
|
|
`mobcount1` smallint(3) unsigned NOT NULL DEFAULT '0',
|
|
|
|
|
`mobcount2` smallint(3) unsigned NOT NULL DEFAULT '0',
|
|
|
|
|
`mobcount3` smallint(3) unsigned NOT NULL DEFAULT '0',
|
|
|
|
|
`mobcount4` smallint(3) unsigned NOT NULL DEFAULT '0',
|
|
|
|
|
`itemcount1` smallint(3) unsigned NOT NULL DEFAULT '0',
|
|
|
|
|
`itemcount2` smallint(3) unsigned NOT NULL DEFAULT '0',
|
|
|
|
|
`itemcount3` smallint(3) unsigned NOT NULL DEFAULT '0',
|
|
|
|
|
`itemcount4` smallint(3) unsigned NOT NULL DEFAULT '0',
|
2008-10-11 14:16:25 -05:00
|
|
|
PRIMARY KEY (`guid`,`quest`)
|
Core/DBLayer: Move tables reserved_name, gameobject_respawn and creature_respawn from WORLD database to CHARACTER database as it's content is realm-specific and should be preserved (thanks to leak for the cleanup)
*** TO PRESERVE (COPY) THE DATA CONTAINED IN THE OLD TABLES, YOU MUST FOLLOW THE FOLLOWING SQL-RECIPE (REPLACE DATABASENAMES WHERE NEEDED!) ***
-- Move creature_respawn from world to characters db
INSERT INTO `characters`.`creature_respawn` (`guid`, `respawntime`, `instance`)
SELECT `guid, `respawntime` `instance` * FROM `world`.`creature_respawn`;
-- Remove creature_respawn table from world db
DROP TABLE `world`.`creature_respawn`;
-- Move gameobject_respawn from world to characters db
INSERT INTO `characters`.`gameobject_respawn` (`guid`, `respawntime`, `instance`)
SELECT `guid`, `respawntime`, `instance` FROM `world`.`gameobject_respawn`;
-- Remove creature_respawn table from world db
DROP TABLE `world`.`gameobject_respawn`;
-- Move reserved names from world to characters db
INSERT INTO `characters`.`reserved_name` (`name`)
SELECT `name` FROM `world`.`reserved_name`;
-- Remove reserved_names table from world db
DROP TABLE `world`.`reserved_name`;
*** THE ABOVE MUST BE DONE, OR EXISTING INSTANCES WILL BE FULLY RESPAWNED - YOU HAVE BEEN WARNED ***
Closes issue 4842. Closes issue 4849.
--HG--
branch : trunk
2010-11-19 15:53:14 +01:00
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Player System';
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
2008-10-11 14:16:25 -05:00
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Dumping data for table `character_queststatus`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
LOCK TABLES `character_queststatus` WRITE;
|
|
|
|
|
/*!40000 ALTER TABLE `character_queststatus` DISABLE KEYS */;
|
|
|
|
|
/*!40000 ALTER TABLE `character_queststatus` ENABLE KEYS */;
|
|
|
|
|
UNLOCK TABLES;
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Table structure for table `character_queststatus_daily`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS `character_queststatus_daily`;
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
|
|
|
/*!40101 SET character_set_client = utf8 */;
|
2008-10-11 14:16:25 -05:00
|
|
|
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`),
|
|
|
|
|
KEY `idx_guid` (`guid`)
|
Core/DBLayer: Move tables reserved_name, gameobject_respawn and creature_respawn from WORLD database to CHARACTER database as it's content is realm-specific and should be preserved (thanks to leak for the cleanup)
*** TO PRESERVE (COPY) THE DATA CONTAINED IN THE OLD TABLES, YOU MUST FOLLOW THE FOLLOWING SQL-RECIPE (REPLACE DATABASENAMES WHERE NEEDED!) ***
-- Move creature_respawn from world to characters db
INSERT INTO `characters`.`creature_respawn` (`guid`, `respawntime`, `instance`)
SELECT `guid, `respawntime` `instance` * FROM `world`.`creature_respawn`;
-- Remove creature_respawn table from world db
DROP TABLE `world`.`creature_respawn`;
-- Move gameobject_respawn from world to characters db
INSERT INTO `characters`.`gameobject_respawn` (`guid`, `respawntime`, `instance`)
SELECT `guid`, `respawntime`, `instance` FROM `world`.`gameobject_respawn`;
-- Remove creature_respawn table from world db
DROP TABLE `world`.`gameobject_respawn`;
-- Move reserved names from world to characters db
INSERT INTO `characters`.`reserved_name` (`name`)
SELECT `name` FROM `world`.`reserved_name`;
-- Remove reserved_names table from world db
DROP TABLE `world`.`reserved_name`;
*** THE ABOVE MUST BE DONE, OR EXISTING INSTANCES WILL BE FULLY RESPAWNED - YOU HAVE BEEN WARNED ***
Closes issue 4842. Closes issue 4849.
--HG--
branch : trunk
2010-11-19 15:53:14 +01:00
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Player System';
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
2008-10-11 14:16:25 -05:00
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Dumping data for table `character_queststatus_daily`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
LOCK TABLES `character_queststatus_daily` WRITE;
|
|
|
|
|
/*!40000 ALTER TABLE `character_queststatus_daily` DISABLE KEYS */;
|
|
|
|
|
/*!40000 ALTER TABLE `character_queststatus_daily` ENABLE KEYS */;
|
|
|
|
|
UNLOCK TABLES;
|
|
|
|
|
|
2010-04-15 08:26:30 +04:00
|
|
|
--
|
|
|
|
|
-- Table structure for table `character_queststatus_weekly`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS `character_queststatus_weekly`;
|
|
|
|
|
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`),
|
|
|
|
|
KEY `idx_guid` (`guid`)
|
Core/DBLayer: Move tables reserved_name, gameobject_respawn and creature_respawn from WORLD database to CHARACTER database as it's content is realm-specific and should be preserved (thanks to leak for the cleanup)
*** TO PRESERVE (COPY) THE DATA CONTAINED IN THE OLD TABLES, YOU MUST FOLLOW THE FOLLOWING SQL-RECIPE (REPLACE DATABASENAMES WHERE NEEDED!) ***
-- Move creature_respawn from world to characters db
INSERT INTO `characters`.`creature_respawn` (`guid`, `respawntime`, `instance`)
SELECT `guid, `respawntime` `instance` * FROM `world`.`creature_respawn`;
-- Remove creature_respawn table from world db
DROP TABLE `world`.`creature_respawn`;
-- Move gameobject_respawn from world to characters db
INSERT INTO `characters`.`gameobject_respawn` (`guid`, `respawntime`, `instance`)
SELECT `guid`, `respawntime`, `instance` FROM `world`.`gameobject_respawn`;
-- Remove creature_respawn table from world db
DROP TABLE `world`.`gameobject_respawn`;
-- Move reserved names from world to characters db
INSERT INTO `characters`.`reserved_name` (`name`)
SELECT `name` FROM `world`.`reserved_name`;
-- Remove reserved_names table from world db
DROP TABLE `world`.`reserved_name`;
*** THE ABOVE MUST BE DONE, OR EXISTING INSTANCES WILL BE FULLY RESPAWNED - YOU HAVE BEEN WARNED ***
Closes issue 4842. Closes issue 4849.
--HG--
branch : trunk
2010-11-19 15:53:14 +01:00
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Player System';
|
2010-04-15 08:26:30 +04:00
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Dumping data for table `character_queststatus_weekly`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
LOCK TABLES `character_queststatus_weekly` WRITE;
|
|
|
|
|
/*!40000 ALTER TABLE `character_queststatus_weekly` DISABLE KEYS */;
|
|
|
|
|
/*!40000 ALTER TABLE `character_queststatus_weekly` ENABLE KEYS */;
|
|
|
|
|
UNLOCK TABLES;
|
|
|
|
|
|
2008-10-11 14:16:25 -05:00
|
|
|
--
|
|
|
|
|
-- Table structure for table `character_reputation`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS `character_reputation`;
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
|
|
|
/*!40101 SET character_set_client = utf8 */;
|
2008-10-11 14:16:25 -05:00
|
|
|
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`)
|
Core/DBLayer: Move tables reserved_name, gameobject_respawn and creature_respawn from WORLD database to CHARACTER database as it's content is realm-specific and should be preserved (thanks to leak for the cleanup)
*** TO PRESERVE (COPY) THE DATA CONTAINED IN THE OLD TABLES, YOU MUST FOLLOW THE FOLLOWING SQL-RECIPE (REPLACE DATABASENAMES WHERE NEEDED!) ***
-- Move creature_respawn from world to characters db
INSERT INTO `characters`.`creature_respawn` (`guid`, `respawntime`, `instance`)
SELECT `guid, `respawntime` `instance` * FROM `world`.`creature_respawn`;
-- Remove creature_respawn table from world db
DROP TABLE `world`.`creature_respawn`;
-- Move gameobject_respawn from world to characters db
INSERT INTO `characters`.`gameobject_respawn` (`guid`, `respawntime`, `instance`)
SELECT `guid`, `respawntime`, `instance` FROM `world`.`gameobject_respawn`;
-- Remove creature_respawn table from world db
DROP TABLE `world`.`gameobject_respawn`;
-- Move reserved names from world to characters db
INSERT INTO `characters`.`reserved_name` (`name`)
SELECT `name` FROM `world`.`reserved_name`;
-- Remove reserved_names table from world db
DROP TABLE `world`.`reserved_name`;
*** THE ABOVE MUST BE DONE, OR EXISTING INSTANCES WILL BE FULLY RESPAWNED - YOU HAVE BEEN WARNED ***
Closes issue 4842. Closes issue 4849.
--HG--
branch : trunk
2010-11-19 15:53:14 +01:00
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Player System';
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
2008-10-11 14:16:25 -05:00
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Dumping data for table `character_reputation`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
LOCK TABLES `character_reputation` WRITE;
|
|
|
|
|
/*!40000 ALTER TABLE `character_reputation` DISABLE KEYS */;
|
|
|
|
|
/*!40000 ALTER TABLE `character_reputation` ENABLE KEYS */;
|
|
|
|
|
UNLOCK TABLES;
|
|
|
|
|
|
2009-12-14 20:47:43 +01:00
|
|
|
--
|
|
|
|
|
-- Table structure for table `character_skills`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS `character_skills`;
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
|
|
|
/*!40101 SET character_set_client = utf8 */;
|
2009-12-14 20:47:43 +01:00
|
|
|
CREATE TABLE `character_skills` (
|
|
|
|
|
`guid` int(11) unsigned NOT NULL COMMENT 'Global Unique Identifier',
|
|
|
|
|
`skill` mediumint(9) unsigned NOT NULL,
|
|
|
|
|
`value` mediumint(9) unsigned NOT NULL,
|
|
|
|
|
`max` mediumint(9) unsigned NOT NULL,
|
|
|
|
|
PRIMARY KEY (`guid`,`skill`)
|
Core/DBLayer: Move tables reserved_name, gameobject_respawn and creature_respawn from WORLD database to CHARACTER database as it's content is realm-specific and should be preserved (thanks to leak for the cleanup)
*** TO PRESERVE (COPY) THE DATA CONTAINED IN THE OLD TABLES, YOU MUST FOLLOW THE FOLLOWING SQL-RECIPE (REPLACE DATABASENAMES WHERE NEEDED!) ***
-- Move creature_respawn from world to characters db
INSERT INTO `characters`.`creature_respawn` (`guid`, `respawntime`, `instance`)
SELECT `guid, `respawntime` `instance` * FROM `world`.`creature_respawn`;
-- Remove creature_respawn table from world db
DROP TABLE `world`.`creature_respawn`;
-- Move gameobject_respawn from world to characters db
INSERT INTO `characters`.`gameobject_respawn` (`guid`, `respawntime`, `instance`)
SELECT `guid`, `respawntime`, `instance` FROM `world`.`gameobject_respawn`;
-- Remove creature_respawn table from world db
DROP TABLE `world`.`gameobject_respawn`;
-- Move reserved names from world to characters db
INSERT INTO `characters`.`reserved_name` (`name`)
SELECT `name` FROM `world`.`reserved_name`;
-- Remove reserved_names table from world db
DROP TABLE `world`.`reserved_name`;
*** THE ABOVE MUST BE DONE, OR EXISTING INSTANCES WILL BE FULLY RESPAWNED - YOU HAVE BEEN WARNED ***
Closes issue 4842. Closes issue 4849.
--HG--
branch : trunk
2010-11-19 15:53:14 +01:00
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Player System';
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
2009-12-14 20:47:43 +01:00
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Dumping data for table `character_skills`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
LOCK TABLES `character_skills` WRITE;
|
|
|
|
|
/*!40000 ALTER TABLE `character_skills` DISABLE KEYS */;
|
|
|
|
|
/*!40000 ALTER TABLE `character_skills` ENABLE KEYS */;
|
|
|
|
|
UNLOCK TABLES;
|
|
|
|
|
|
2008-10-11 14:16:25 -05:00
|
|
|
--
|
|
|
|
|
-- Table structure for table `character_social`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS `character_social`;
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
|
|
|
/*!40101 SET character_set_client = utf8 */;
|
2008-10-11 14:16:25 -05:00
|
|
|
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',
|
2008-12-21 09:33:44 -06:00
|
|
|
`note` varchar(48) NOT NULL DEFAULT '' COMMENT 'Friend Note',
|
2008-10-11 14:16:25 -05:00
|
|
|
PRIMARY KEY (`guid`,`friend`,`flags`),
|
|
|
|
|
KEY `guid` (`guid`),
|
|
|
|
|
KEY `friend` (`friend`),
|
|
|
|
|
KEY `guid_flags` (`guid`,`flags`),
|
|
|
|
|
KEY `friend_flags` (`friend`,`flags`)
|
Core/DBLayer: Move tables reserved_name, gameobject_respawn and creature_respawn from WORLD database to CHARACTER database as it's content is realm-specific and should be preserved (thanks to leak for the cleanup)
*** TO PRESERVE (COPY) THE DATA CONTAINED IN THE OLD TABLES, YOU MUST FOLLOW THE FOLLOWING SQL-RECIPE (REPLACE DATABASENAMES WHERE NEEDED!) ***
-- Move creature_respawn from world to characters db
INSERT INTO `characters`.`creature_respawn` (`guid`, `respawntime`, `instance`)
SELECT `guid, `respawntime` `instance` * FROM `world`.`creature_respawn`;
-- Remove creature_respawn table from world db
DROP TABLE `world`.`creature_respawn`;
-- Move gameobject_respawn from world to characters db
INSERT INTO `characters`.`gameobject_respawn` (`guid`, `respawntime`, `instance`)
SELECT `guid`, `respawntime`, `instance` FROM `world`.`gameobject_respawn`;
-- Remove creature_respawn table from world db
DROP TABLE `world`.`gameobject_respawn`;
-- Move reserved names from world to characters db
INSERT INTO `characters`.`reserved_name` (`name`)
SELECT `name` FROM `world`.`reserved_name`;
-- Remove reserved_names table from world db
DROP TABLE `world`.`reserved_name`;
*** THE ABOVE MUST BE DONE, OR EXISTING INSTANCES WILL BE FULLY RESPAWNED - YOU HAVE BEEN WARNED ***
Closes issue 4842. Closes issue 4849.
--HG--
branch : trunk
2010-11-19 15:53:14 +01:00
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Player System';
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
2008-10-11 14:16:25 -05:00
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Dumping data for table `character_social`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
LOCK TABLES `character_social` WRITE;
|
|
|
|
|
/*!40000 ALTER TABLE `character_social` DISABLE KEYS */;
|
|
|
|
|
/*!40000 ALTER TABLE `character_social` ENABLE KEYS */;
|
|
|
|
|
UNLOCK TABLES;
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Table structure for table `character_spell`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS `character_spell`;
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
|
|
|
/*!40101 SET character_set_client = utf8 */;
|
2008-10-11 14:16:25 -05:00
|
|
|
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`)
|
Core/DBLayer: Move tables reserved_name, gameobject_respawn and creature_respawn from WORLD database to CHARACTER database as it's content is realm-specific and should be preserved (thanks to leak for the cleanup)
*** TO PRESERVE (COPY) THE DATA CONTAINED IN THE OLD TABLES, YOU MUST FOLLOW THE FOLLOWING SQL-RECIPE (REPLACE DATABASENAMES WHERE NEEDED!) ***
-- Move creature_respawn from world to characters db
INSERT INTO `characters`.`creature_respawn` (`guid`, `respawntime`, `instance`)
SELECT `guid, `respawntime` `instance` * FROM `world`.`creature_respawn`;
-- Remove creature_respawn table from world db
DROP TABLE `world`.`creature_respawn`;
-- Move gameobject_respawn from world to characters db
INSERT INTO `characters`.`gameobject_respawn` (`guid`, `respawntime`, `instance`)
SELECT `guid`, `respawntime`, `instance` FROM `world`.`gameobject_respawn`;
-- Remove creature_respawn table from world db
DROP TABLE `world`.`gameobject_respawn`;
-- Move reserved names from world to characters db
INSERT INTO `characters`.`reserved_name` (`name`)
SELECT `name` FROM `world`.`reserved_name`;
-- Remove reserved_names table from world db
DROP TABLE `world`.`reserved_name`;
*** THE ABOVE MUST BE DONE, OR EXISTING INSTANCES WILL BE FULLY RESPAWNED - YOU HAVE BEEN WARNED ***
Closes issue 4842. Closes issue 4849.
--HG--
branch : trunk
2010-11-19 15:53:14 +01:00
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Player System';
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
2008-10-11 14:16:25 -05:00
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Dumping data for table `character_spell`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
LOCK TABLES `character_spell` WRITE;
|
|
|
|
|
/*!40000 ALTER TABLE `character_spell` DISABLE KEYS */;
|
|
|
|
|
/*!40000 ALTER TABLE `character_spell` ENABLE KEYS */;
|
|
|
|
|
UNLOCK TABLES;
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Table structure for table `character_spell_cooldown`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS `character_spell_cooldown`;
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
|
|
|
/*!40101 SET character_set_client = utf8 */;
|
2008-10-11 14:16:25 -05:00
|
|
|
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`)
|
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
2008-10-11 14:16:25 -05:00
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Dumping data for table `character_spell_cooldown`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
LOCK TABLES `character_spell_cooldown` WRITE;
|
|
|
|
|
/*!40000 ALTER TABLE `character_spell_cooldown` DISABLE KEYS */;
|
|
|
|
|
/*!40000 ALTER TABLE `character_spell_cooldown` ENABLE KEYS */;
|
|
|
|
|
UNLOCK TABLES;
|
|
|
|
|
|
2010-04-14 13:29:56 +04:00
|
|
|
--
|
|
|
|
|
-- Table structure for table `character_stats`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS `character_stats`;
|
|
|
|
|
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`)
|
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Dumping data for table `character_stats`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
LOCK TABLES `character_stats` WRITE;
|
|
|
|
|
/*!40000 ALTER TABLE `character_stats` DISABLE KEYS */;
|
|
|
|
|
/*!40000 ALTER TABLE `character_stats` ENABLE KEYS */;
|
|
|
|
|
UNLOCK TABLES;
|
|
|
|
|
|
2009-08-14 17:24:52 -07:00
|
|
|
--
|
|
|
|
|
-- Table structure for table `character_talent`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS `character_talent`;
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
|
|
|
/*!40101 SET character_set_client = utf8 */;
|
2009-08-14 17:24:52 -07:00
|
|
|
CREATE TABLE `character_talent` (
|
|
|
|
|
`guid` int(11) unsigned NOT NULL,
|
|
|
|
|
`spell` int(11) unsigned NOT NULL,
|
|
|
|
|
`spec` tinyint(3) unsigned NOT NULL DEFAULT '0',
|
|
|
|
|
PRIMARY KEY (`guid`,`spell`,`spec`)
|
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
2009-08-14 17:24:52 -07:00
|
|
|
|
|
|
|
|
--
|
2010-02-01 18:52:42 +01:00
|
|
|
-- Dumping data for table `character_talent`
|
2009-08-14 17:24:52 -07:00
|
|
|
--
|
|
|
|
|
|
|
|
|
|
LOCK TABLES `character_talent` WRITE;
|
|
|
|
|
/*!40000 ALTER TABLE `character_talent` DISABLE KEYS */;
|
|
|
|
|
/*!40000 ALTER TABLE `character_talent` ENABLE KEYS */;
|
|
|
|
|
UNLOCK TABLES;
|
|
|
|
|
|
2008-10-11 14:16:25 -05:00
|
|
|
--
|
|
|
|
|
-- Table structure for table `character_tutorial`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS `character_tutorial`;
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
|
|
|
/*!40101 SET character_set_client = utf8 */;
|
2008-10-11 14:16:25 -05:00
|
|
|
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`),
|
2008-12-21 09:33:44 -06:00
|
|
|
KEY acc_key (`account`)
|
Core/DBLayer: Move tables reserved_name, gameobject_respawn and creature_respawn from WORLD database to CHARACTER database as it's content is realm-specific and should be preserved (thanks to leak for the cleanup)
*** TO PRESERVE (COPY) THE DATA CONTAINED IN THE OLD TABLES, YOU MUST FOLLOW THE FOLLOWING SQL-RECIPE (REPLACE DATABASENAMES WHERE NEEDED!) ***
-- Move creature_respawn from world to characters db
INSERT INTO `characters`.`creature_respawn` (`guid`, `respawntime`, `instance`)
SELECT `guid, `respawntime` `instance` * FROM `world`.`creature_respawn`;
-- Remove creature_respawn table from world db
DROP TABLE `world`.`creature_respawn`;
-- Move gameobject_respawn from world to characters db
INSERT INTO `characters`.`gameobject_respawn` (`guid`, `respawntime`, `instance`)
SELECT `guid`, `respawntime`, `instance` FROM `world`.`gameobject_respawn`;
-- Remove creature_respawn table from world db
DROP TABLE `world`.`gameobject_respawn`;
-- Move reserved names from world to characters db
INSERT INTO `characters`.`reserved_name` (`name`)
SELECT `name` FROM `world`.`reserved_name`;
-- Remove reserved_names table from world db
DROP TABLE `world`.`reserved_name`;
*** THE ABOVE MUST BE DONE, OR EXISTING INSTANCES WILL BE FULLY RESPAWNED - YOU HAVE BEEN WARNED ***
Closes issue 4842. Closes issue 4849.
--HG--
branch : trunk
2010-11-19 15:53:14 +01:00
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Player System';
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
2008-10-11 14:16:25 -05:00
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Dumping data for table `character_tutorial`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
LOCK TABLES `character_tutorial` WRITE;
|
|
|
|
|
/*!40000 ALTER TABLE `character_tutorial` DISABLE KEYS */;
|
|
|
|
|
/*!40000 ALTER TABLE `character_tutorial` ENABLE KEYS */;
|
|
|
|
|
UNLOCK TABLES;
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Table structure for table `corpse`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS `corpse`;
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
|
|
|
/*!40101 SET character_set_client = utf8 */;
|
2008-10-11 14:16:25 -05:00
|
|
|
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',
|
2009-01-31 16:38:50 -06:00
|
|
|
`phaseMask` smallint(5) unsigned NOT NULL default '1',
|
2010-07-30 15:15:07 +02:00
|
|
|
`displayId` int(10) unsigned NOT NULL default '0',
|
2010-07-31 08:58:46 +02:00
|
|
|
`itemCache` text NOT NULL,
|
2010-07-30 15:15:07 +02:00
|
|
|
`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',
|
2008-10-11 14:16:25 -05:00
|
|
|
`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`),
|
2010-04-14 13:02:05 +04:00
|
|
|
KEY `instance` (`instance`),
|
|
|
|
|
INDEX `Idx_player`(`player`),
|
|
|
|
|
INDEX `Idx_time`(`time`)
|
Core/DBLayer: Move tables reserved_name, gameobject_respawn and creature_respawn from WORLD database to CHARACTER database as it's content is realm-specific and should be preserved (thanks to leak for the cleanup)
*** TO PRESERVE (COPY) THE DATA CONTAINED IN THE OLD TABLES, YOU MUST FOLLOW THE FOLLOWING SQL-RECIPE (REPLACE DATABASENAMES WHERE NEEDED!) ***
-- Move creature_respawn from world to characters db
INSERT INTO `characters`.`creature_respawn` (`guid`, `respawntime`, `instance`)
SELECT `guid, `respawntime` `instance` * FROM `world`.`creature_respawn`;
-- Remove creature_respawn table from world db
DROP TABLE `world`.`creature_respawn`;
-- Move gameobject_respawn from world to characters db
INSERT INTO `characters`.`gameobject_respawn` (`guid`, `respawntime`, `instance`)
SELECT `guid`, `respawntime`, `instance` FROM `world`.`gameobject_respawn`;
-- Remove creature_respawn table from world db
DROP TABLE `world`.`gameobject_respawn`;
-- Move reserved names from world to characters db
INSERT INTO `characters`.`reserved_name` (`name`)
SELECT `name` FROM `world`.`reserved_name`;
-- Remove reserved_names table from world db
DROP TABLE `world`.`reserved_name`;
*** THE ABOVE MUST BE DONE, OR EXISTING INSTANCES WILL BE FULLY RESPAWNED - YOU HAVE BEEN WARNED ***
Closes issue 4842. Closes issue 4849.
--HG--
branch : trunk
2010-11-19 15:53:14 +01:00
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Death System';
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
2008-10-11 14:16:25 -05:00
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Dumping data for table `corpse`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
LOCK TABLES `corpse` WRITE;
|
|
|
|
|
/*!40000 ALTER TABLE `corpse` DISABLE KEYS */;
|
|
|
|
|
/*!40000 ALTER TABLE `corpse` ENABLE KEYS */;
|
|
|
|
|
UNLOCK TABLES;
|
|
|
|
|
|
2009-02-22 04:18:30 +01:00
|
|
|
--
|
|
|
|
|
-- Table structure for table `game_event_condition_save`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS `game_event_condition_save`;
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
|
|
|
/*!40101 SET character_set_client = utf8 */;
|
2009-02-22 04:18:30 +01:00
|
|
|
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`)
|
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
2009-02-22 04:18:30 +01:00
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Dumping data for table `game_event_condition_save`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
LOCK TABLES `game_event_condition_save` WRITE;
|
|
|
|
|
/*!40000 ALTER TABLE `game_event_condition_save` DISABLE KEYS */;
|
|
|
|
|
/*!40000 ALTER TABLE `game_event_condition_save` ENABLE KEYS */;
|
|
|
|
|
UNLOCK TABLES;
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Table structure for table `game_event_save`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS `game_event_save`;
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
|
|
|
/*!40101 SET character_set_client = utf8 */;
|
2009-02-22 04:18:30 +01:00
|
|
|
CREATE TABLE `game_event_save` (
|
|
|
|
|
`event_id` mediumint(8) unsigned NOT NULL,
|
|
|
|
|
`state` tinyint(3) unsigned NOT NULL default '1',
|
2010-09-04 18:01:03 +02:00
|
|
|
`next_start` BIGINT(11) UNSIGNED NOT NULL DEFAULT '0',
|
2009-02-22 04:18:30 +01:00
|
|
|
PRIMARY KEY (`event_id`)
|
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
2009-02-22 04:18:30 +01:00
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Dumping data for table `game_event_save`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
LOCK TABLES `game_event_save` WRITE;
|
|
|
|
|
/*!40000 ALTER TABLE `game_event_save` DISABLE KEYS */;
|
|
|
|
|
/*!40000 ALTER TABLE `game_event_save` ENABLE KEYS */;
|
|
|
|
|
UNLOCK TABLES;
|
|
|
|
|
|
2010-08-29 20:28:14 -07:00
|
|
|
--
|
|
|
|
|
-- 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',
|
2010-08-30 09:26:28 +03:00
|
|
|
`comment` longtext NOT NULL,
|
2010-08-29 20:28:14 -07:00
|
|
|
PRIMARY KEY (`surveyid`,`subsurveyid`)
|
Core/DBLayer: Move tables reserved_name, gameobject_respawn and creature_respawn from WORLD database to CHARACTER database as it's content is realm-specific and should be preserved (thanks to leak for the cleanup)
*** TO PRESERVE (COPY) THE DATA CONTAINED IN THE OLD TABLES, YOU MUST FOLLOW THE FOLLOWING SQL-RECIPE (REPLACE DATABASENAMES WHERE NEEDED!) ***
-- Move creature_respawn from world to characters db
INSERT INTO `characters`.`creature_respawn` (`guid`, `respawntime`, `instance`)
SELECT `guid, `respawntime` `instance` * FROM `world`.`creature_respawn`;
-- Remove creature_respawn table from world db
DROP TABLE `world`.`creature_respawn`;
-- Move gameobject_respawn from world to characters db
INSERT INTO `characters`.`gameobject_respawn` (`guid`, `respawntime`, `instance`)
SELECT `guid`, `respawntime`, `instance` FROM `world`.`gameobject_respawn`;
-- Remove creature_respawn table from world db
DROP TABLE `world`.`gameobject_respawn`;
-- Move reserved names from world to characters db
INSERT INTO `characters`.`reserved_name` (`name`)
SELECT `name` FROM `world`.`reserved_name`;
-- Remove reserved_names table from world db
DROP TABLE `world`.`reserved_name`;
*** THE ABOVE MUST BE DONE, OR EXISTING INSTANCES WILL BE FULLY RESPAWNED - YOU HAVE BEEN WARNED ***
Closes issue 4842. Closes issue 4849.
--HG--
branch : trunk
2010-11-19 15:53:14 +01:00
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Player System';
|
2010-08-29 20:28:14 -07:00
|
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
|
|
|
Core/DBLayer: Move tables reserved_name, gameobject_respawn and creature_respawn from WORLD database to CHARACTER database as it's content is realm-specific and should be preserved (thanks to leak for the cleanup)
*** TO PRESERVE (COPY) THE DATA CONTAINED IN THE OLD TABLES, YOU MUST FOLLOW THE FOLLOWING SQL-RECIPE (REPLACE DATABASENAMES WHERE NEEDED!) ***
-- Move creature_respawn from world to characters db
INSERT INTO `characters`.`creature_respawn` (`guid`, `respawntime`, `instance`)
SELECT `guid, `respawntime` `instance` * FROM `world`.`creature_respawn`;
-- Remove creature_respawn table from world db
DROP TABLE `world`.`creature_respawn`;
-- Move gameobject_respawn from world to characters db
INSERT INTO `characters`.`gameobject_respawn` (`guid`, `respawntime`, `instance`)
SELECT `guid`, `respawntime`, `instance` FROM `world`.`gameobject_respawn`;
-- Remove creature_respawn table from world db
DROP TABLE `world`.`gameobject_respawn`;
-- Move reserved names from world to characters db
INSERT INTO `characters`.`reserved_name` (`name`)
SELECT `name` FROM `world`.`reserved_name`;
-- Remove reserved_names table from world db
DROP TABLE `world`.`reserved_name`;
*** THE ABOVE MUST BE DONE, OR EXISTING INSTANCES WILL BE FULLY RESPAWNED - YOU HAVE BEEN WARNED ***
Closes issue 4842. Closes issue 4849.
--HG--
branch : trunk
2010-11-19 15:53:14 +01:00
|
|
|
--
|
|
|
|
|
-- 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',
|
2010-12-23 05:49:23 +01:00
|
|
|
`respawntime` bigint(20) unsigned NOT NULL DEFAULT '0',
|
Core/DBLayer: Move tables reserved_name, gameobject_respawn and creature_respawn from WORLD database to CHARACTER database as it's content is realm-specific and should be preserved (thanks to leak for the cleanup)
*** TO PRESERVE (COPY) THE DATA CONTAINED IN THE OLD TABLES, YOU MUST FOLLOW THE FOLLOWING SQL-RECIPE (REPLACE DATABASENAMES WHERE NEEDED!) ***
-- Move creature_respawn from world to characters db
INSERT INTO `characters`.`creature_respawn` (`guid`, `respawntime`, `instance`)
SELECT `guid, `respawntime` `instance` * FROM `world`.`creature_respawn`;
-- Remove creature_respawn table from world db
DROP TABLE `world`.`creature_respawn`;
-- Move gameobject_respawn from world to characters db
INSERT INTO `characters`.`gameobject_respawn` (`guid`, `respawntime`, `instance`)
SELECT `guid`, `respawntime`, `instance` FROM `world`.`gameobject_respawn`;
-- Remove creature_respawn table from world db
DROP TABLE `world`.`gameobject_respawn`;
-- Move reserved names from world to characters db
INSERT INTO `characters`.`reserved_name` (`name`)
SELECT `name` FROM `world`.`reserved_name`;
-- Remove reserved_names table from world db
DROP TABLE `world`.`reserved_name`;
*** THE ABOVE MUST BE DONE, OR EXISTING INSTANCES WILL BE FULLY RESPAWNED - YOU HAVE BEEN WARNED ***
Closes issue 4842. Closes issue 4849.
--HG--
branch : trunk
2010-11-19 15:53:14 +01:00
|
|
|
`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`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS `gameobject_respawn`;
|
|
|
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
|
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
|
|
|
CREATE TABLE `gameobject_respawn` (
|
|
|
|
|
`guid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Global Unique Identifier',
|
2010-12-23 05:49:23 +01:00
|
|
|
`respawntime` bigint(20) unsigned NOT NULL DEFAULT '0',
|
Core/DBLayer: Move tables reserved_name, gameobject_respawn and creature_respawn from WORLD database to CHARACTER database as it's content is realm-specific and should be preserved (thanks to leak for the cleanup)
*** TO PRESERVE (COPY) THE DATA CONTAINED IN THE OLD TABLES, YOU MUST FOLLOW THE FOLLOWING SQL-RECIPE (REPLACE DATABASENAMES WHERE NEEDED!) ***
-- Move creature_respawn from world to characters db
INSERT INTO `characters`.`creature_respawn` (`guid`, `respawntime`, `instance`)
SELECT `guid, `respawntime` `instance` * FROM `world`.`creature_respawn`;
-- Remove creature_respawn table from world db
DROP TABLE `world`.`creature_respawn`;
-- Move gameobject_respawn from world to characters db
INSERT INTO `characters`.`gameobject_respawn` (`guid`, `respawntime`, `instance`)
SELECT `guid`, `respawntime`, `instance` FROM `world`.`gameobject_respawn`;
-- Remove creature_respawn table from world db
DROP TABLE `world`.`gameobject_respawn`;
-- Move reserved names from world to characters db
INSERT INTO `characters`.`reserved_name` (`name`)
SELECT `name` FROM `world`.`reserved_name`;
-- Remove reserved_names table from world db
DROP TABLE `world`.`reserved_name`;
*** THE ABOVE MUST BE DONE, OR EXISTING INSTANCES WILL BE FULLY RESPAWNED - YOU HAVE BEEN WARNED ***
Closes issue 4842. Closes issue 4849.
--HG--
branch : trunk
2010-11-19 15:53:14 +01:00
|
|
|
`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 `gameobject_respawn`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
LOCK TABLES `gameobject_respawn` WRITE;
|
|
|
|
|
/*!40000 ALTER TABLE `gameobject_respawn` DISABLE KEYS */;
|
|
|
|
|
/*!40000 ALTER TABLE `gameobject_respawn` ENABLE KEYS */;
|
|
|
|
|
UNLOCK TABLES;
|
|
|
|
|
|
2010-08-29 20:28:14 -07:00
|
|
|
--
|
|
|
|
|
-- Dumping data for table `gm_subsurveys`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
LOCK TABLES `gm_subsurveys` WRITE;
|
|
|
|
|
/*!40000 ALTER TABLE `gm_subsurveys` DISABLE KEYS */;
|
|
|
|
|
/*!40000 ALTER TABLE `gm_subsurveys` ENABLE KEYS */;
|
|
|
|
|
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',
|
2010-08-30 09:26:28 +03:00
|
|
|
`overall_comment` longtext NOT NULL,
|
2010-08-29 20:28:14 -07:00
|
|
|
`timestamp` int(11) NOT NULL DEFAULT '0',
|
|
|
|
|
PRIMARY KEY (`surveyid`)
|
Core/DBLayer: Move tables reserved_name, gameobject_respawn and creature_respawn from WORLD database to CHARACTER database as it's content is realm-specific and should be preserved (thanks to leak for the cleanup)
*** TO PRESERVE (COPY) THE DATA CONTAINED IN THE OLD TABLES, YOU MUST FOLLOW THE FOLLOWING SQL-RECIPE (REPLACE DATABASENAMES WHERE NEEDED!) ***
-- Move creature_respawn from world to characters db
INSERT INTO `characters`.`creature_respawn` (`guid`, `respawntime`, `instance`)
SELECT `guid, `respawntime` `instance` * FROM `world`.`creature_respawn`;
-- Remove creature_respawn table from world db
DROP TABLE `world`.`creature_respawn`;
-- Move gameobject_respawn from world to characters db
INSERT INTO `characters`.`gameobject_respawn` (`guid`, `respawntime`, `instance`)
SELECT `guid`, `respawntime`, `instance` FROM `world`.`gameobject_respawn`;
-- Remove creature_respawn table from world db
DROP TABLE `world`.`gameobject_respawn`;
-- Move reserved names from world to characters db
INSERT INTO `characters`.`reserved_name` (`name`)
SELECT `name` FROM `world`.`reserved_name`;
-- Remove reserved_names table from world db
DROP TABLE `world`.`reserved_name`;
*** THE ABOVE MUST BE DONE, OR EXISTING INSTANCES WILL BE FULLY RESPAWNED - YOU HAVE BEEN WARNED ***
Closes issue 4842. Closes issue 4849.
--HG--
branch : trunk
2010-11-19 15:53:14 +01:00
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Player System';
|
2010-08-29 20:28:14 -07:00
|
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Dumping data for table `gm_surveys`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
LOCK TABLES `gm_surveys` WRITE;
|
|
|
|
|
/*!40000 ALTER TABLE `gm_surveys` DISABLE KEYS */;
|
|
|
|
|
/*!40000 ALTER TABLE `gm_surveys` ENABLE KEYS */;
|
|
|
|
|
UNLOCK TABLES;
|
|
|
|
|
|
2009-02-22 04:18:30 +01:00
|
|
|
--
|
|
|
|
|
-- Table structure for table `gm_tickets`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS `gm_tickets`;
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
|
|
|
/*!40101 SET character_set_client = utf8 */;
|
2009-02-22 04:18:30 +01:00
|
|
|
CREATE TABLE `gm_tickets` (
|
|
|
|
|
`guid` int(10) NOT NULL auto_increment,
|
|
|
|
|
`playerGuid` int(11) unsigned NOT NULL default '0',
|
|
|
|
|
`name` varchar(15) NOT NULL,
|
|
|
|
|
`message` text NOT NULL,
|
2009-05-04 12:18:03 -04:00
|
|
|
`createtime` int(10) NOT NULL default '0',
|
2009-05-04 12:39:40 -04:00
|
|
|
`map` int NOT NULL DEFAULT '0',
|
|
|
|
|
`posX` float NOT NULL DEFAULT '0',
|
|
|
|
|
`posY` float NOT NULL DEFAULT '0',
|
|
|
|
|
`posZ` float NOT NULL DEFAULT '0',
|
2009-05-11 08:32:50 -04:00
|
|
|
`timestamp` int(10) NOT NULL default '0',
|
2009-02-22 04:18:30 +01:00
|
|
|
`closed` int(10) NOT NULL default '0',
|
|
|
|
|
`assignedto` int(10) NOT NULL default '0',
|
|
|
|
|
`comment` text NOT NULL,
|
2010-08-29 20:28:14 -07:00
|
|
|
`completed` int(11) NOT NULL DEFAULT '0',
|
|
|
|
|
`escalated` int(11) NOT NULL DEFAULT '0',
|
|
|
|
|
`viewed` int(11) NOT NULL DEFAULT '0',
|
2009-02-22 04:18:30 +01:00
|
|
|
PRIMARY KEY (`guid`)
|
Core/DBLayer: Move tables reserved_name, gameobject_respawn and creature_respawn from WORLD database to CHARACTER database as it's content is realm-specific and should be preserved (thanks to leak for the cleanup)
*** TO PRESERVE (COPY) THE DATA CONTAINED IN THE OLD TABLES, YOU MUST FOLLOW THE FOLLOWING SQL-RECIPE (REPLACE DATABASENAMES WHERE NEEDED!) ***
-- Move creature_respawn from world to characters db
INSERT INTO `characters`.`creature_respawn` (`guid`, `respawntime`, `instance`)
SELECT `guid, `respawntime` `instance` * FROM `world`.`creature_respawn`;
-- Remove creature_respawn table from world db
DROP TABLE `world`.`creature_respawn`;
-- Move gameobject_respawn from world to characters db
INSERT INTO `characters`.`gameobject_respawn` (`guid`, `respawntime`, `instance`)
SELECT `guid`, `respawntime`, `instance` FROM `world`.`gameobject_respawn`;
-- Remove creature_respawn table from world db
DROP TABLE `world`.`gameobject_respawn`;
-- Move reserved names from world to characters db
INSERT INTO `characters`.`reserved_name` (`name`)
SELECT `name` FROM `world`.`reserved_name`;
-- Remove reserved_names table from world db
DROP TABLE `world`.`reserved_name`;
*** THE ABOVE MUST BE DONE, OR EXISTING INSTANCES WILL BE FULLY RESPAWNED - YOU HAVE BEEN WARNED ***
Closes issue 4842. Closes issue 4849.
--HG--
branch : trunk
2010-11-19 15:53:14 +01:00
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Player System';
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
2009-02-22 04:18:30 +01:00
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Dumping data for table `gm_tickets`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
LOCK TABLES `gm_tickets` WRITE;
|
|
|
|
|
/*!40000 ALTER TABLE `gm_tickets` DISABLE KEYS */;
|
|
|
|
|
/*!40000 ALTER TABLE `gm_tickets` ENABLE KEYS */;
|
|
|
|
|
UNLOCK TABLES;
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Table structure for table `group_instance`
|
|
|
|
|
--
|
|
|
|
|
|
2008-10-11 14:16:25 -05:00
|
|
|
DROP TABLE IF EXISTS `group_instance`;
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
|
|
|
/*!40101 SET character_set_client = utf8 */;
|
2008-10-11 14:16:25 -05:00
|
|
|
CREATE TABLE `group_instance` (
|
2010-05-08 01:58:47 +02:00
|
|
|
`guid` int(11) unsigned NOT NULL default '0',
|
2008-10-11 14:16:25 -05:00
|
|
|
`instance` int(11) unsigned NOT NULL default '0',
|
|
|
|
|
`permanent` tinyint(1) unsigned NOT NULL default '0',
|
2010-05-08 01:58:47 +02:00
|
|
|
PRIMARY KEY (`guid`,`instance`),
|
2008-10-11 14:16:25 -05:00
|
|
|
KEY `instance` (`instance`)
|
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
2008-10-11 14:16:25 -05:00
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Dumping data for table `group_instance`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
LOCK TABLES `group_instance` WRITE;
|
|
|
|
|
/*!40000 ALTER TABLE `group_instance` DISABLE KEYS */;
|
|
|
|
|
/*!40000 ALTER TABLE `group_instance` ENABLE KEYS */;
|
|
|
|
|
UNLOCK TABLES;
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Table structure for table `group_member`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS `group_member`;
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
|
|
|
/*!40101 SET character_set_client = utf8 */;
|
2008-10-11 14:16:25 -05:00
|
|
|
CREATE TABLE `group_member` (
|
2010-05-08 01:58:47 +02:00
|
|
|
`guid` int(11) unsigned NOT NULL,
|
2010-12-01 18:17:33 +01:00
|
|
|
`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',
|
2010-05-08 01:58:47 +02:00
|
|
|
PRIMARY KEY (`memberGuid`)
|
2008-10-11 14:16:25 -05:00
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Groups';
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
2008-10-11 14:16:25 -05:00
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Dumping data for table `group_member`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
LOCK TABLES `group_member` WRITE;
|
|
|
|
|
/*!40000 ALTER TABLE `group_member` DISABLE KEYS */;
|
|
|
|
|
/*!40000 ALTER TABLE `group_member` ENABLE KEYS */;
|
|
|
|
|
UNLOCK TABLES;
|
|
|
|
|
|
2010-02-01 18:52:42 +01:00
|
|
|
--
|
|
|
|
|
-- Table structure for table `groups`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS `groups`;
|
|
|
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
|
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
|
|
|
CREATE TABLE `groups` (
|
2010-05-08 01:58:47 +02:00
|
|
|
`guid` int(11) unsigned NOT NULL,
|
2010-02-01 18:52:42 +01:00
|
|
|
`leaderGuid` int(11) unsigned NOT NULL,
|
|
|
|
|
`lootMethod` tinyint(4) unsigned NOT NULL,
|
|
|
|
|
`looterGuid` int(11) unsigned NOT NULL,
|
|
|
|
|
`lootThreshold` tinyint(4) unsigned NOT NULL,
|
|
|
|
|
`icon1` int(11) unsigned NOT NULL,
|
|
|
|
|
`icon2` int(11) unsigned NOT NULL,
|
|
|
|
|
`icon3` int(11) unsigned NOT NULL,
|
|
|
|
|
`icon4` int(11) unsigned NOT NULL,
|
|
|
|
|
`icon5` int(11) unsigned NOT NULL,
|
|
|
|
|
`icon6` int(11) unsigned NOT NULL,
|
|
|
|
|
`icon7` int(11) unsigned NOT NULL,
|
|
|
|
|
`icon8` int(11) unsigned NOT NULL,
|
2010-05-05 12:40:52 +02:00
|
|
|
`groupType` mediumint(8) unsigned NOT NULL,
|
2010-02-01 18:52:42 +01:00
|
|
|
`difficulty` tinyint(3) unsigned NOT NULL default '0',
|
|
|
|
|
`raiddifficulty` int(11) UNSIGNED NOT NULL default '0',
|
2010-09-06 01:38:50 +03:00
|
|
|
PRIMARY KEY (`guid`),
|
|
|
|
|
KEY `leaderGuid` (`leaderGuid`)
|
2010-02-01 18:52:42 +01:00
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Groups';
|
|
|
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Dumping data for table `groups`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
LOCK TABLES `groups` WRITE;
|
|
|
|
|
/*!40000 ALTER TABLE `groups` DISABLE KEYS */;
|
|
|
|
|
/*!40000 ALTER TABLE `groups` ENABLE KEYS */;
|
|
|
|
|
UNLOCK TABLES;
|
|
|
|
|
|
2008-10-11 14:16:25 -05:00
|
|
|
--
|
|
|
|
|
-- Table structure for table `guild`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS `guild`;
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
|
|
|
/*!40101 SET character_set_client = utf8 */;
|
2008-10-11 14:16:25 -05:00
|
|
|
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',
|
|
|
|
|
`info` text NOT NULL,
|
|
|
|
|
`motd` varchar(255) NOT NULL default '',
|
2009-08-24 20:25:32 -05:00
|
|
|
`createdate` bigint(20) NOT NULL default '0',
|
2008-10-11 14:16:25 -05:00
|
|
|
`BankMoney` bigint(20) NOT NULL default '0',
|
|
|
|
|
PRIMARY KEY (`guildid`)
|
Core/DBLayer: Move tables reserved_name, gameobject_respawn and creature_respawn from WORLD database to CHARACTER database as it's content is realm-specific and should be preserved (thanks to leak for the cleanup)
*** TO PRESERVE (COPY) THE DATA CONTAINED IN THE OLD TABLES, YOU MUST FOLLOW THE FOLLOWING SQL-RECIPE (REPLACE DATABASENAMES WHERE NEEDED!) ***
-- Move creature_respawn from world to characters db
INSERT INTO `characters`.`creature_respawn` (`guid`, `respawntime`, `instance`)
SELECT `guid, `respawntime` `instance` * FROM `world`.`creature_respawn`;
-- Remove creature_respawn table from world db
DROP TABLE `world`.`creature_respawn`;
-- Move gameobject_respawn from world to characters db
INSERT INTO `characters`.`gameobject_respawn` (`guid`, `respawntime`, `instance`)
SELECT `guid`, `respawntime`, `instance` FROM `world`.`gameobject_respawn`;
-- Remove creature_respawn table from world db
DROP TABLE `world`.`gameobject_respawn`;
-- Move reserved names from world to characters db
INSERT INTO `characters`.`reserved_name` (`name`)
SELECT `name` FROM `world`.`reserved_name`;
-- Remove reserved_names table from world db
DROP TABLE `world`.`reserved_name`;
*** THE ABOVE MUST BE DONE, OR EXISTING INSTANCES WILL BE FULLY RESPAWNED - YOU HAVE BEEN WARNED ***
Closes issue 4842. Closes issue 4849.
--HG--
branch : trunk
2010-11-19 15:53:14 +01:00
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Guild System';
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
2008-10-11 14:16:25 -05:00
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Dumping data for table `guild`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
LOCK TABLES `guild` WRITE;
|
|
|
|
|
/*!40000 ALTER TABLE `guild` DISABLE KEYS */;
|
|
|
|
|
/*!40000 ALTER TABLE `guild` ENABLE KEYS */;
|
|
|
|
|
UNLOCK TABLES;
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Table structure for table `guild_bank_eventlog`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS `guild_bank_eventlog`;
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
|
|
|
/*!40101 SET character_set_client = utf8 */;
|
2008-10-11 14:16:25 -05:00
|
|
|
CREATE TABLE `guild_bank_eventlog` (
|
2009-08-24 19:23:31 -05:00
|
|
|
`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',
|
2008-10-11 14:16:25 -05:00
|
|
|
`PlayerGuid` int(11) unsigned NOT NULL default '0',
|
|
|
|
|
`ItemOrMoney` int(11) unsigned NOT NULL default '0',
|
2010-09-13 22:41:32 +03:00
|
|
|
`ItemStackCount` smallint(4) unsigned NOT NULL default '0',
|
2009-08-24 19:23:31 -05:00
|
|
|
`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`),
|
2010-09-10 13:37:33 +02:00
|
|
|
KEY `guildid_key` (`guildid`),
|
2010-04-14 13:02:05 +04:00
|
|
|
INDEX `Idx_PlayerGuid`(`PlayerGuid`),
|
|
|
|
|
INDEX `Idx_LogGuid`(`LogGuid`)
|
2008-10-11 14:16:25 -05:00
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
2008-10-11 14:16:25 -05:00
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Dumping data for table `guild_bank_eventlog`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
LOCK TABLES `guild_bank_eventlog` WRITE;
|
|
|
|
|
/*!40000 ALTER TABLE `guild_bank_eventlog` DISABLE KEYS */;
|
|
|
|
|
/*!40000 ALTER TABLE `guild_bank_eventlog` ENABLE KEYS */;
|
|
|
|
|
UNLOCK TABLES;
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Table structure for table `guild_bank_item`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS `guild_bank_item`;
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
|
|
|
/*!40101 SET character_set_client = utf8 */;
|
2008-10-11 14:16:25 -05:00
|
|
|
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',
|
2008-12-21 09:33:44 -06:00
|
|
|
PRIMARY KEY (`guildid`,`tabid`,`slotid`),
|
2010-09-10 13:37:33 +02:00
|
|
|
KEY `guildid_key` (`guildid`),
|
2010-04-14 13:02:05 +04:00
|
|
|
INDEX `Idx_item_guid`(`item_guid`)
|
2008-10-11 14:16:25 -05:00
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
2008-10-11 14:16:25 -05:00
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Dumping data for table `guild_bank_item`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
LOCK TABLES `guild_bank_item` WRITE;
|
|
|
|
|
/*!40000 ALTER TABLE `guild_bank_item` DISABLE KEYS */;
|
|
|
|
|
/*!40000 ALTER TABLE `guild_bank_item` ENABLE KEYS */;
|
|
|
|
|
UNLOCK TABLES;
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Table structure for table `guild_bank_right`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS `guild_bank_right`;
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
|
|
|
/*!40101 SET character_set_client = utf8 */;
|
2008-10-11 14:16:25 -05:00
|
|
|
CREATE TABLE `guild_bank_right` (
|
|
|
|
|
`guildid` int(11) unsigned NOT NULL default '0',
|
|
|
|
|
`TabId` tinyint(1) unsigned NOT NULL default '0',
|
2010-10-17 19:54:13 +06:00
|
|
|
`rid` tinyint(1) unsigned NOT NULL default '0',
|
2008-10-11 14:16:25 -05:00
|
|
|
`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;
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
2008-10-11 14:16:25 -05:00
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Dumping data for table `guild_bank_right`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
LOCK TABLES `guild_bank_right` WRITE;
|
|
|
|
|
/*!40000 ALTER TABLE `guild_bank_right` DISABLE KEYS */;
|
|
|
|
|
/*!40000 ALTER TABLE `guild_bank_right` ENABLE KEYS */;
|
|
|
|
|
UNLOCK TABLES;
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Table structure for table `guild_bank_tab`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS `guild_bank_tab`;
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
|
|
|
/*!40101 SET character_set_client = utf8 */;
|
2008-10-11 14:16:25 -05:00
|
|
|
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 '',
|
2008-12-21 09:33:44 -06:00
|
|
|
`TabText` text,
|
2008-10-11 14:16:25 -05:00
|
|
|
PRIMARY KEY (`guildid`,`TabId`),
|
|
|
|
|
KEY `guildid_key` (`guildid`)
|
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
2008-10-11 14:16:25 -05:00
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Dumping data for table `guild_bank_tab`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
LOCK TABLES `guild_bank_tab` WRITE;
|
|
|
|
|
/*!40000 ALTER TABLE `guild_bank_tab` DISABLE KEYS */;
|
|
|
|
|
/*!40000 ALTER TABLE `guild_bank_tab` ENABLE KEYS */;
|
|
|
|
|
UNLOCK TABLES;
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Table structure for table `guild_eventlog`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS `guild_eventlog`;
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
|
|
|
/*!40101 SET character_set_client = utf8 */;
|
2008-10-11 14:16:25 -05:00
|
|
|
CREATE TABLE `guild_eventlog` (
|
|
|
|
|
`guildid` int(11) NOT NULL COMMENT 'Guild Identificator',
|
2009-08-24 19:23:31 -05:00
|
|
|
`LogGuid` int(11) NOT NULL COMMENT 'Log record identificator - auxiliary column',
|
2008-10-11 14:16:25 -05:00
|
|
|
`EventType` tinyint(1) NOT NULL COMMENT 'Event type',
|
|
|
|
|
`PlayerGuid1` int(11) NOT NULL COMMENT 'Player 1',
|
|
|
|
|
`PlayerGuid2` int(11) NOT NULL COMMENT 'Player 2',
|
|
|
|
|
`NewRank` tinyint(2) NOT NULL COMMENT 'New rank(in case promotion/demotion)',
|
2009-08-24 19:23:31 -05:00
|
|
|
`TimeStamp` bigint(20) NOT NULL COMMENT 'Event UNIX time',
|
2010-04-14 13:02:05 +04:00
|
|
|
PRIMARY KEY (`guildid`, `LogGuid`),
|
|
|
|
|
INDEX `Idx_PlayerGuid1`(`PlayerGuid1`),
|
|
|
|
|
INDEX `Idx_PlayerGuid2`(`PlayerGuid2`),
|
|
|
|
|
INDEX `Idx_LogGuid`(`LogGuid`)
|
2009-07-01 18:37:45 -05:00
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT 'Guild Eventlog';
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
2008-10-11 14:16:25 -05:00
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Dumping data for table `guild_eventlog`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
LOCK TABLES `guild_eventlog` WRITE;
|
|
|
|
|
/*!40000 ALTER TABLE `guild_eventlog` DISABLE KEYS */;
|
|
|
|
|
/*!40000 ALTER TABLE `guild_eventlog` ENABLE KEYS */;
|
|
|
|
|
UNLOCK TABLES;
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Table structure for table `guild_member`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS `guild_member`;
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
|
|
|
/*!40101 SET character_set_client = utf8 */;
|
2008-10-11 14:16:25 -05:00
|
|
|
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',
|
|
|
|
|
KEY `guildid_key` (`guildid`),
|
|
|
|
|
KEY `guildid_rank_key` (`guildid`,`rank`),
|
2008-12-06 14:01:44 -06:00
|
|
|
UNIQUE KEY `guid_key` (`guid`)
|
2008-10-11 14:16:25 -05:00
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Guild System';
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
2008-10-11 14:16:25 -05:00
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Dumping data for table `guild_member`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
LOCK TABLES `guild_member` WRITE;
|
|
|
|
|
/*!40000 ALTER TABLE `guild_member` DISABLE KEYS */;
|
|
|
|
|
/*!40000 ALTER TABLE `guild_member` ENABLE KEYS */;
|
|
|
|
|
UNLOCK TABLES;
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Table structure for table `guild_rank`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS `guild_rank`;
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
|
|
|
/*!40101 SET character_set_client = utf8 */;
|
2008-10-11 14:16:25 -05:00
|
|
|
CREATE TABLE `guild_rank` (
|
|
|
|
|
`guildid` int(6) unsigned NOT NULL default '0',
|
2010-10-17 19:54:13 +06:00
|
|
|
`rid` tinyint(1) unsigned NOT NULL,
|
2008-10-11 14:16:25 -05:00
|
|
|
`rname` varchar(255) NOT NULL default '',
|
|
|
|
|
`rights` int(3) unsigned NOT NULL default '0',
|
|
|
|
|
`BankMoneyPerDay` int(11) unsigned NOT NULL default '0',
|
2010-04-14 13:02:05 +04:00
|
|
|
PRIMARY KEY (`guildid`,`rid`),
|
|
|
|
|
INDEX `Idx_rid`(`rid`)
|
Core/DBLayer: Move tables reserved_name, gameobject_respawn and creature_respawn from WORLD database to CHARACTER database as it's content is realm-specific and should be preserved (thanks to leak for the cleanup)
*** TO PRESERVE (COPY) THE DATA CONTAINED IN THE OLD TABLES, YOU MUST FOLLOW THE FOLLOWING SQL-RECIPE (REPLACE DATABASENAMES WHERE NEEDED!) ***
-- Move creature_respawn from world to characters db
INSERT INTO `characters`.`creature_respawn` (`guid`, `respawntime`, `instance`)
SELECT `guid, `respawntime` `instance` * FROM `world`.`creature_respawn`;
-- Remove creature_respawn table from world db
DROP TABLE `world`.`creature_respawn`;
-- Move gameobject_respawn from world to characters db
INSERT INTO `characters`.`gameobject_respawn` (`guid`, `respawntime`, `instance`)
SELECT `guid`, `respawntime`, `instance` FROM `world`.`gameobject_respawn`;
-- Remove creature_respawn table from world db
DROP TABLE `world`.`gameobject_respawn`;
-- Move reserved names from world to characters db
INSERT INTO `characters`.`reserved_name` (`name`)
SELECT `name` FROM `world`.`reserved_name`;
-- Remove reserved_names table from world db
DROP TABLE `world`.`reserved_name`;
*** THE ABOVE MUST BE DONE, OR EXISTING INSTANCES WILL BE FULLY RESPAWNED - YOU HAVE BEEN WARNED ***
Closes issue 4842. Closes issue 4849.
--HG--
branch : trunk
2010-11-19 15:53:14 +01:00
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Guild System';
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
2008-10-11 14:16:25 -05:00
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Dumping data for table `guild_rank`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
LOCK TABLES `guild_rank` WRITE;
|
|
|
|
|
/*!40000 ALTER TABLE `guild_rank` DISABLE KEYS */;
|
|
|
|
|
/*!40000 ALTER TABLE `guild_rank` ENABLE KEYS */;
|
|
|
|
|
UNLOCK TABLES;
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Table structure for table `instance`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS `instance`;
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
|
|
|
/*!40101 SET character_set_client = utf8 */;
|
2008-10-11 14:16:25 -05:00
|
|
|
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',
|
|
|
|
|
`data` longtext,
|
|
|
|
|
PRIMARY KEY (`id`),
|
|
|
|
|
KEY `map` (`map`),
|
2010-09-06 01:38:50 +03:00
|
|
|
KEY `resettime` (`resettime`),
|
|
|
|
|
KEY `difficulty` (`difficulty`)
|
2008-10-11 14:16:25 -05:00
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
2008-10-11 14:16:25 -05:00
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Dumping data for table `instance`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
LOCK TABLES `instance` WRITE;
|
|
|
|
|
/*!40000 ALTER TABLE `instance` DISABLE KEYS */;
|
|
|
|
|
/*!40000 ALTER TABLE `instance` ENABLE KEYS */;
|
|
|
|
|
UNLOCK TABLES;
|
|
|
|
|
|
2009-02-22 04:18:30 +01:00
|
|
|
--
|
|
|
|
|
-- Table structure for table `instance_reset`
|
|
|
|
|
--
|
|
|
|
|
|
2008-10-11 14:16:25 -05:00
|
|
|
DROP TABLE IF EXISTS `instance_reset`;
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
|
|
|
/*!40101 SET character_set_client = utf8 */;
|
2008-10-11 14:16:25 -05:00
|
|
|
CREATE TABLE `instance_reset` (
|
|
|
|
|
`mapid` int(11) unsigned NOT NULL default '0',
|
2009-12-18 07:06:53 +01:00
|
|
|
`difficulty` tinyint(1) unsigned NOT NULL default '0',
|
2008-10-11 14:16:25 -05:00
|
|
|
`resettime` bigint(40) NOT NULL default '0',
|
2010-09-06 01:38:50 +03:00
|
|
|
PRIMARY KEY (`mapid`,`difficulty`),
|
|
|
|
|
KEY `difficulty` (`difficulty`)
|
2008-10-11 14:16:25 -05:00
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
2008-10-11 14:16:25 -05:00
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Dumping data for table `instance_reset`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
LOCK TABLES `instance_reset` WRITE;
|
|
|
|
|
/*!40000 ALTER TABLE `instance_reset` DISABLE KEYS */;
|
|
|
|
|
/*!40000 ALTER TABLE `instance_reset` ENABLE KEYS */;
|
|
|
|
|
UNLOCK TABLES;
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Table structure for table `item_instance`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS `item_instance`;
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
|
|
|
/*!40101 SET character_set_client = utf8 */;
|
2008-10-11 14:16:25 -05:00
|
|
|
CREATE TABLE `item_instance` (
|
|
|
|
|
`guid` int(11) unsigned NOT NULL default '0',
|
2010-12-15 14:08:12 +06:00
|
|
|
`itemEntry` mediumint(8) unsigned NOT NULL default '0',
|
2008-10-11 14:16:25 -05:00
|
|
|
`owner_guid` int(11) unsigned NOT NULL default '0',
|
2010-07-30 13:15:31 +02:00
|
|
|
`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',
|
|
|
|
|
`enchantments` text NOT NULL,
|
|
|
|
|
`randomPropertyId` int(11) NOT NULL default '0',
|
|
|
|
|
`durability` int(10) unsigned NOT NULL default '0',
|
2010-07-30 15:15:07 +02:00
|
|
|
`playedTime` int(10) unsigned NOT NULL default '0',
|
2010-04-14 12:43:42 +04:00
|
|
|
`text` longtext,
|
2008-10-11 14:16:25 -05:00
|
|
|
PRIMARY KEY (`guid`),
|
|
|
|
|
KEY `idx_owner_guid` (`owner_guid`)
|
Core/DBLayer: Move tables reserved_name, gameobject_respawn and creature_respawn from WORLD database to CHARACTER database as it's content is realm-specific and should be preserved (thanks to leak for the cleanup)
*** TO PRESERVE (COPY) THE DATA CONTAINED IN THE OLD TABLES, YOU MUST FOLLOW THE FOLLOWING SQL-RECIPE (REPLACE DATABASENAMES WHERE NEEDED!) ***
-- Move creature_respawn from world to characters db
INSERT INTO `characters`.`creature_respawn` (`guid`, `respawntime`, `instance`)
SELECT `guid, `respawntime` `instance` * FROM `world`.`creature_respawn`;
-- Remove creature_respawn table from world db
DROP TABLE `world`.`creature_respawn`;
-- Move gameobject_respawn from world to characters db
INSERT INTO `characters`.`gameobject_respawn` (`guid`, `respawntime`, `instance`)
SELECT `guid`, `respawntime`, `instance` FROM `world`.`gameobject_respawn`;
-- Remove creature_respawn table from world db
DROP TABLE `world`.`gameobject_respawn`;
-- Move reserved names from world to characters db
INSERT INTO `characters`.`reserved_name` (`name`)
SELECT `name` FROM `world`.`reserved_name`;
-- Remove reserved_names table from world db
DROP TABLE `world`.`reserved_name`;
*** THE ABOVE MUST BE DONE, OR EXISTING INSTANCES WILL BE FULLY RESPAWNED - YOU HAVE BEEN WARNED ***
Closes issue 4842. Closes issue 4849.
--HG--
branch : trunk
2010-11-19 15:53:14 +01:00
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Item System';
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
2008-10-11 14:16:25 -05:00
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Dumping data for table `item_instance`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
LOCK TABLES `item_instance` WRITE;
|
|
|
|
|
/*!40000 ALTER TABLE `item_instance` DISABLE KEYS */;
|
|
|
|
|
/*!40000 ALTER TABLE `item_instance` ENABLE KEYS */;
|
|
|
|
|
UNLOCK TABLES;
|
|
|
|
|
|
2010-03-18 22:56:48 +01:00
|
|
|
--
|
|
|
|
|
-- Table structure for table `item_refund_instance`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS `item_refund_instance`;
|
|
|
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
|
|
|
/*!40101 SET character_set_client = utf8 */;
|
2010-05-12 20:18:04 +02:00
|
|
|
CREATE TABLE `item_refund_instance` (
|
|
|
|
|
`item_guid` int(11) unsigned NOT NULL COMMENT 'Item GUID',
|
|
|
|
|
`player_guid` int(11) unsigned NOT NULL COMMENT 'Player GUID',
|
|
|
|
|
`paidMoney` int(11) unsigned NOT NULL DEFAULT '0',
|
|
|
|
|
`paidExtendedCost` int(11) unsigned NOT NULL DEFAULT '0',
|
|
|
|
|
PRIMARY KEY (`item_guid`,`player_guid`)
|
Core/DBLayer: Move tables reserved_name, gameobject_respawn and creature_respawn from WORLD database to CHARACTER database as it's content is realm-specific and should be preserved (thanks to leak for the cleanup)
*** TO PRESERVE (COPY) THE DATA CONTAINED IN THE OLD TABLES, YOU MUST FOLLOW THE FOLLOWING SQL-RECIPE (REPLACE DATABASENAMES WHERE NEEDED!) ***
-- Move creature_respawn from world to characters db
INSERT INTO `characters`.`creature_respawn` (`guid`, `respawntime`, `instance`)
SELECT `guid, `respawntime` `instance` * FROM `world`.`creature_respawn`;
-- Remove creature_respawn table from world db
DROP TABLE `world`.`creature_respawn`;
-- Move gameobject_respawn from world to characters db
INSERT INTO `characters`.`gameobject_respawn` (`guid`, `respawntime`, `instance`)
SELECT `guid`, `respawntime`, `instance` FROM `world`.`gameobject_respawn`;
-- Remove creature_respawn table from world db
DROP TABLE `world`.`gameobject_respawn`;
-- Move reserved names from world to characters db
INSERT INTO `characters`.`reserved_name` (`name`)
SELECT `name` FROM `world`.`reserved_name`;
-- Remove reserved_names table from world db
DROP TABLE `world`.`reserved_name`;
*** THE ABOVE MUST BE DONE, OR EXISTING INSTANCES WILL BE FULLY RESPAWNED - YOU HAVE BEEN WARNED ***
Closes issue 4842. Closes issue 4849.
--HG--
branch : trunk
2010-11-19 15:53:14 +01:00
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Item Refund System';
|
2010-03-18 22:56:48 +01:00
|
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
2010-03-19 14:21:21 +01:00
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Dumping data for table `item_refund_instance`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
LOCK TABLES `item_refund_instance` WRITE;
|
|
|
|
|
/*!40000 ALTER TABLE `item_refund_instance` DISABLE KEYS */;
|
|
|
|
|
/*!40000 ALTER TABLE `item_refund_instance` ENABLE KEYS */;
|
|
|
|
|
UNLOCK TABLES;
|
2008-10-11 14:16:25 -05:00
|
|
|
|
2010-09-21 21:55:16 +02:00
|
|
|
--
|
|
|
|
|
-- Table structure for table `item_soulbound_trade_data`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS `item_soulbound_trade_data`;
|
|
|
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
|
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
|
|
|
CREATE TABLE `item_soulbound_trade_data` (
|
|
|
|
|
`itemGuid` int(11) unsigned NOT NULL COMMENT 'Item GUID',
|
|
|
|
|
`allowedPlayers` text NOT NULL COMMENT 'Space separated GUID list of players who can receive this item in trade',
|
|
|
|
|
PRIMARY KEY (`itemGuid`)
|
Core/DBLayer: Move tables reserved_name, gameobject_respawn and creature_respawn from WORLD database to CHARACTER database as it's content is realm-specific and should be preserved (thanks to leak for the cleanup)
*** TO PRESERVE (COPY) THE DATA CONTAINED IN THE OLD TABLES, YOU MUST FOLLOW THE FOLLOWING SQL-RECIPE (REPLACE DATABASENAMES WHERE NEEDED!) ***
-- Move creature_respawn from world to characters db
INSERT INTO `characters`.`creature_respawn` (`guid`, `respawntime`, `instance`)
SELECT `guid, `respawntime` `instance` * FROM `world`.`creature_respawn`;
-- Remove creature_respawn table from world db
DROP TABLE `world`.`creature_respawn`;
-- Move gameobject_respawn from world to characters db
INSERT INTO `characters`.`gameobject_respawn` (`guid`, `respawntime`, `instance`)
SELECT `guid`, `respawntime`, `instance` FROM `world`.`gameobject_respawn`;
-- Remove creature_respawn table from world db
DROP TABLE `world`.`gameobject_respawn`;
-- Move reserved names from world to characters db
INSERT INTO `characters`.`reserved_name` (`name`)
SELECT `name` FROM `world`.`reserved_name`;
-- Remove reserved_names table from world db
DROP TABLE `world`.`reserved_name`;
*** THE ABOVE MUST BE DONE, OR EXISTING INSTANCES WILL BE FULLY RESPAWNED - YOU HAVE BEEN WARNED ***
Closes issue 4842. Closes issue 4849.
--HG--
branch : trunk
2010-11-19 15:53:14 +01:00
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Item Refund System';
|
2010-09-21 21:55:16 +02:00
|
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Dumping data for table `item_soulbound_trade_data`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
LOCK TABLES `item_soulbound_trade_data` WRITE;
|
|
|
|
|
/*!40000 ALTER TABLE `item_soulbound_trade_data` DISABLE KEYS */;
|
|
|
|
|
/*!40000 ALTER TABLE `item_soulbound_trade_data` ENABLE KEYS */;
|
|
|
|
|
UNLOCK TABLES;
|
|
|
|
|
|
2010-08-29 20:28:14 -07:00
|
|
|
--
|
|
|
|
|
-- Table structure for table `lag_reports`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
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',
|
|
|
|
|
`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`)
|
Core/DBLayer: Move tables reserved_name, gameobject_respawn and creature_respawn from WORLD database to CHARACTER database as it's content is realm-specific and should be preserved (thanks to leak for the cleanup)
*** TO PRESERVE (COPY) THE DATA CONTAINED IN THE OLD TABLES, YOU MUST FOLLOW THE FOLLOWING SQL-RECIPE (REPLACE DATABASENAMES WHERE NEEDED!) ***
-- Move creature_respawn from world to characters db
INSERT INTO `characters`.`creature_respawn` (`guid`, `respawntime`, `instance`)
SELECT `guid, `respawntime` `instance` * FROM `world`.`creature_respawn`;
-- Remove creature_respawn table from world db
DROP TABLE `world`.`creature_respawn`;
-- Move gameobject_respawn from world to characters db
INSERT INTO `characters`.`gameobject_respawn` (`guid`, `respawntime`, `instance`)
SELECT `guid`, `respawntime`, `instance` FROM `world`.`gameobject_respawn`;
-- Remove creature_respawn table from world db
DROP TABLE `world`.`gameobject_respawn`;
-- Move reserved names from world to characters db
INSERT INTO `characters`.`reserved_name` (`name`)
SELECT `name` FROM `world`.`reserved_name`;
-- Remove reserved_names table from world db
DROP TABLE `world`.`reserved_name`;
*** THE ABOVE MUST BE DONE, OR EXISTING INSTANCES WILL BE FULLY RESPAWNED - YOU HAVE BEEN WARNED ***
Closes issue 4842. Closes issue 4849.
--HG--
branch : trunk
2010-11-19 15:53:14 +01:00
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Player System';
|
2010-08-29 20:28:14 -07:00
|
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Dumping data for table `lag_reports`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
LOCK TABLES `lag_reports` WRITE;
|
|
|
|
|
/*!40000 ALTER TABLE `lag_reports` DISABLE KEYS */;
|
|
|
|
|
/*!40000 ALTER TABLE `lag_reports` ENABLE KEYS */;
|
|
|
|
|
UNLOCK TABLES;
|
|
|
|
|
|
2008-10-11 14:16:25 -05:00
|
|
|
--
|
|
|
|
|
-- Table structure for table `mail`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS `mail`;
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
|
|
|
/*!40101 SET character_set_client = utf8 */;
|
2008-10-11 14:16:25 -05:00
|
|
|
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',
|
|
|
|
|
`subject` longtext,
|
2010-04-11 11:35:46 +04:00
|
|
|
`body` longtext,
|
2008-10-11 14:16:25 -05:00
|
|
|
`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`)
|
Core/DBLayer: Move tables reserved_name, gameobject_respawn and creature_respawn from WORLD database to CHARACTER database as it's content is realm-specific and should be preserved (thanks to leak for the cleanup)
*** TO PRESERVE (COPY) THE DATA CONTAINED IN THE OLD TABLES, YOU MUST FOLLOW THE FOLLOWING SQL-RECIPE (REPLACE DATABASENAMES WHERE NEEDED!) ***
-- Move creature_respawn from world to characters db
INSERT INTO `characters`.`creature_respawn` (`guid`, `respawntime`, `instance`)
SELECT `guid, `respawntime` `instance` * FROM `world`.`creature_respawn`;
-- Remove creature_respawn table from world db
DROP TABLE `world`.`creature_respawn`;
-- Move gameobject_respawn from world to characters db
INSERT INTO `characters`.`gameobject_respawn` (`guid`, `respawntime`, `instance`)
SELECT `guid`, `respawntime`, `instance` FROM `world`.`gameobject_respawn`;
-- Remove creature_respawn table from world db
DROP TABLE `world`.`gameobject_respawn`;
-- Move reserved names from world to characters db
INSERT INTO `characters`.`reserved_name` (`name`)
SELECT `name` FROM `world`.`reserved_name`;
-- Remove reserved_names table from world db
DROP TABLE `world`.`reserved_name`;
*** THE ABOVE MUST BE DONE, OR EXISTING INSTANCES WILL BE FULLY RESPAWNED - YOU HAVE BEEN WARNED ***
Closes issue 4842. Closes issue 4849.
--HG--
branch : trunk
2010-11-19 15:53:14 +01:00
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Mail System';
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
2008-10-11 14:16:25 -05:00
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Dumping data for table `mail`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
LOCK TABLES `mail` WRITE;
|
|
|
|
|
/*!40000 ALTER TABLE `mail` DISABLE KEYS */;
|
|
|
|
|
/*!40000 ALTER TABLE `mail` ENABLE KEYS */;
|
|
|
|
|
UNLOCK TABLES;
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Table structure for table `mail_items`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS `mail_items`;
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
|
|
|
/*!40101 SET character_set_client = utf8 */;
|
2008-10-11 14:16:25 -05:00
|
|
|
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`),
|
|
|
|
|
KEY `idx_receiver` (`receiver`)
|
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
2008-10-11 14:16:25 -05:00
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Dumping data for table `mail_items`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
LOCK TABLES `mail_items` WRITE;
|
|
|
|
|
/*!40000 ALTER TABLE `mail_items` DISABLE KEYS */;
|
|
|
|
|
/*!40000 ALTER TABLE `mail_items` ENABLE KEYS */;
|
|
|
|
|
UNLOCK TABLES;
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Table structure for table `pet_aura`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS `pet_aura`;
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
|
|
|
/*!40101 SET character_set_client = utf8 */;
|
2008-10-11 14:16:25 -05:00
|
|
|
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',
|
2009-11-01 17:53:07 -08:00
|
|
|
`effect_mask` tinyint(3) unsigned NOT NULL default '0',
|
Update aura system:
* Change system logic - unify Auras, AreaAuras and PersistentAreaAuras:
* Aura has now its owner - which is the WorldObject, which applies aura (creates AuraApplication object) dependant on aura radius, and effect type
* Owner can be Dynobj (DynObjAura class) for PersistentAreaAuras, or Unit (UnitAura class) for Area and nonArea auras
* Aura data is shared for all units which have AuraApplication of the Aura
* Because of that AuraEffect handlers , and periodic tick functions can't modify AuraEffect object (they are const now)
* Remove spell source and AreaAuraEffect classes
* Add AuraEffect::UpdatePeriodic function, to allow periodic aura object modification (target independant)
* Add AuraEffect::CalculateAmount and AuraEffect::CalculateSpellMod function, to allow non-default amount calculation
* AreaAura updates are done in owner _UpdateSpells cycle
* Since now you don't need to wait an aura update cycle to get area aura applied on it's correct target list
* And you can access area aura target list
* Add basic support for aura amount recalculation
* Save recalculation state and base amount of auras to db
* Add AuraEffect::CalculatePeriodic function to determine if aura is periodic, and to set correct tick number after aura is loaded from db
* Add ChangeAmount function in addition to SetAmount function, to allow easy reapplication of AuraEffect handlers on all targets
* Sort aura effect handlers in SpellAuras.cpp and .h by their use
* Add check for already existing aura of that type to some AuraEffect handlers, to prevent incorrect effect removal
* SPELL_AURA_CONVERT_RUNE and MOD_POWER_REGEN and MOD_REGEN hacky handlers are now implemented correctly
* Send aura application client update only once per unit update - prevent unnecesary packet spam
* Fix ByteBuffer::appendPackGUID function - it added additionall 0s at the end of the packet
* Fix memory leak at player creation (not deleted auras)
* Updated some naming conventions (too many to mention)
* Added Unit::GetAuraOfRankedSpell() function
* Remove procflags on aura remove, use Aura::HandleAuraSpecificMods instead
* Added functions to maintain owned auras (GetOwnedAuras, GetOwnedAura, RemoveOwnedAura, etc)
* Implement AURA_INTERRUPT_FLAG_LANDING
* Implement EffectPlayerNotification (thanks to Spp)
* Remove wrong aura 304 handler
* Add better handler for death runes
* Remove unnecesary variables from DynamicObject class, and cleanup related code, link dynobj duration with aura
* Add GetAuraEffectTriggerTarget function in CreatureAi for special target selection for periodic trigger auras used in a script
* Add many assert() procection from idiots using some functions in wrong way
* I am to lazy to write here anything more
Thanks to Visagalis for testing this patch
PS: Do not make patches like this, please
--HG--
branch : trunk
2010-01-10 01:23:15 +01:00
|
|
|
`recalculate_mask` tinyint(3) unsigned NOT NULL default '0',
|
2009-11-01 17:53:07 -08:00
|
|
|
`stackcount` tinyint(3) unsigned NOT NULL default '1',
|
2009-05-04 16:46:57 -04:00
|
|
|
`amount0` int(11) NOT NULL default '0',
|
|
|
|
|
`amount1` int(11) NOT NULL default '0',
|
|
|
|
|
`amount2` int(11) NOT NULL default '0',
|
Update aura system:
* Change system logic - unify Auras, AreaAuras and PersistentAreaAuras:
* Aura has now its owner - which is the WorldObject, which applies aura (creates AuraApplication object) dependant on aura radius, and effect type
* Owner can be Dynobj (DynObjAura class) for PersistentAreaAuras, or Unit (UnitAura class) for Area and nonArea auras
* Aura data is shared for all units which have AuraApplication of the Aura
* Because of that AuraEffect handlers , and periodic tick functions can't modify AuraEffect object (they are const now)
* Remove spell source and AreaAuraEffect classes
* Add AuraEffect::UpdatePeriodic function, to allow periodic aura object modification (target independant)
* Add AuraEffect::CalculateAmount and AuraEffect::CalculateSpellMod function, to allow non-default amount calculation
* AreaAura updates are done in owner _UpdateSpells cycle
* Since now you don't need to wait an aura update cycle to get area aura applied on it's correct target list
* And you can access area aura target list
* Add basic support for aura amount recalculation
* Save recalculation state and base amount of auras to db
* Add AuraEffect::CalculatePeriodic function to determine if aura is periodic, and to set correct tick number after aura is loaded from db
* Add ChangeAmount function in addition to SetAmount function, to allow easy reapplication of AuraEffect handlers on all targets
* Sort aura effect handlers in SpellAuras.cpp and .h by their use
* Add check for already existing aura of that type to some AuraEffect handlers, to prevent incorrect effect removal
* SPELL_AURA_CONVERT_RUNE and MOD_POWER_REGEN and MOD_REGEN hacky handlers are now implemented correctly
* Send aura application client update only once per unit update - prevent unnecesary packet spam
* Fix ByteBuffer::appendPackGUID function - it added additionall 0s at the end of the packet
* Fix memory leak at player creation (not deleted auras)
* Updated some naming conventions (too many to mention)
* Added Unit::GetAuraOfRankedSpell() function
* Remove procflags on aura remove, use Aura::HandleAuraSpecificMods instead
* Added functions to maintain owned auras (GetOwnedAuras, GetOwnedAura, RemoveOwnedAura, etc)
* Implement AURA_INTERRUPT_FLAG_LANDING
* Implement EffectPlayerNotification (thanks to Spp)
* Remove wrong aura 304 handler
* Add better handler for death runes
* Remove unnecesary variables from DynamicObject class, and cleanup related code, link dynobj duration with aura
* Add GetAuraEffectTriggerTarget function in CreatureAi for special target selection for periodic trigger auras used in a script
* Add many assert() procection from idiots using some functions in wrong way
* I am to lazy to write here anything more
Thanks to Visagalis for testing this patch
PS: Do not make patches like this, please
--HG--
branch : trunk
2010-01-10 01:23:15 +01:00
|
|
|
`base_amount0` int(11) NOT NULL default '0',
|
|
|
|
|
`base_amount1` int(11) NOT NULL default '0',
|
|
|
|
|
`base_amount2` int(11) NOT NULL default '0',
|
2008-10-11 14:16:25 -05:00
|
|
|
`maxduration` int(11) NOT NULL default '0',
|
|
|
|
|
`remaintime` int(11) NOT NULL default '0',
|
2009-11-01 17:53:07 -08:00
|
|
|
`remaincharges` tinyint(3) unsigned NOT NULL default '0',
|
2009-05-04 16:46:57 -04:00
|
|
|
PRIMARY KEY (`guid`,`spell`,`effect_mask`)
|
Core/DBLayer: Move tables reserved_name, gameobject_respawn and creature_respawn from WORLD database to CHARACTER database as it's content is realm-specific and should be preserved (thanks to leak for the cleanup)
*** TO PRESERVE (COPY) THE DATA CONTAINED IN THE OLD TABLES, YOU MUST FOLLOW THE FOLLOWING SQL-RECIPE (REPLACE DATABASENAMES WHERE NEEDED!) ***
-- Move creature_respawn from world to characters db
INSERT INTO `characters`.`creature_respawn` (`guid`, `respawntime`, `instance`)
SELECT `guid, `respawntime` `instance` * FROM `world`.`creature_respawn`;
-- Remove creature_respawn table from world db
DROP TABLE `world`.`creature_respawn`;
-- Move gameobject_respawn from world to characters db
INSERT INTO `characters`.`gameobject_respawn` (`guid`, `respawntime`, `instance`)
SELECT `guid`, `respawntime`, `instance` FROM `world`.`gameobject_respawn`;
-- Remove creature_respawn table from world db
DROP TABLE `world`.`gameobject_respawn`;
-- Move reserved names from world to characters db
INSERT INTO `characters`.`reserved_name` (`name`)
SELECT `name` FROM `world`.`reserved_name`;
-- Remove reserved_names table from world db
DROP TABLE `world`.`reserved_name`;
*** THE ABOVE MUST BE DONE, OR EXISTING INSTANCES WILL BE FULLY RESPAWNED - YOU HAVE BEEN WARNED ***
Closes issue 4842. Closes issue 4849.
--HG--
branch : trunk
2010-11-19 15:53:14 +01:00
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Pet System';
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
2008-10-11 14:16:25 -05:00
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Dumping data for table `pet_aura`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
LOCK TABLES `pet_aura` WRITE;
|
|
|
|
|
/*!40000 ALTER TABLE `pet_aura` DISABLE KEYS */;
|
|
|
|
|
/*!40000 ALTER TABLE `pet_aura` ENABLE KEYS */;
|
|
|
|
|
UNLOCK TABLES;
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Table structure for table `pet_spell`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS `pet_spell`;
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
|
|
|
/*!40101 SET character_set_client = utf8 */;
|
2008-10-11 14:16:25 -05:00
|
|
|
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`)
|
Core/DBLayer: Move tables reserved_name, gameobject_respawn and creature_respawn from WORLD database to CHARACTER database as it's content is realm-specific and should be preserved (thanks to leak for the cleanup)
*** TO PRESERVE (COPY) THE DATA CONTAINED IN THE OLD TABLES, YOU MUST FOLLOW THE FOLLOWING SQL-RECIPE (REPLACE DATABASENAMES WHERE NEEDED!) ***
-- Move creature_respawn from world to characters db
INSERT INTO `characters`.`creature_respawn` (`guid`, `respawntime`, `instance`)
SELECT `guid, `respawntime` `instance` * FROM `world`.`creature_respawn`;
-- Remove creature_respawn table from world db
DROP TABLE `world`.`creature_respawn`;
-- Move gameobject_respawn from world to characters db
INSERT INTO `characters`.`gameobject_respawn` (`guid`, `respawntime`, `instance`)
SELECT `guid`, `respawntime`, `instance` FROM `world`.`gameobject_respawn`;
-- Remove creature_respawn table from world db
DROP TABLE `world`.`gameobject_respawn`;
-- Move reserved names from world to characters db
INSERT INTO `characters`.`reserved_name` (`name`)
SELECT `name` FROM `world`.`reserved_name`;
-- Remove reserved_names table from world db
DROP TABLE `world`.`reserved_name`;
*** THE ABOVE MUST BE DONE, OR EXISTING INSTANCES WILL BE FULLY RESPAWNED - YOU HAVE BEEN WARNED ***
Closes issue 4842. Closes issue 4849.
--HG--
branch : trunk
2010-11-19 15:53:14 +01:00
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Pet System';
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
2008-10-11 14:16:25 -05:00
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Dumping data for table `pet_spell`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
LOCK TABLES `pet_spell` WRITE;
|
|
|
|
|
/*!40000 ALTER TABLE `pet_spell` DISABLE KEYS */;
|
|
|
|
|
/*!40000 ALTER TABLE `pet_spell` ENABLE KEYS */;
|
|
|
|
|
UNLOCK TABLES;
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Table structure for table `pet_spell_cooldown`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS `pet_spell_cooldown`;
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
|
|
|
/*!40101 SET character_set_client = utf8 */;
|
2008-10-11 14:16:25 -05:00
|
|
|
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`)
|
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
2008-10-11 14:16:25 -05:00
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Dumping data for table `pet_spell_cooldown`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
LOCK TABLES `pet_spell_cooldown` WRITE;
|
|
|
|
|
/*!40000 ALTER TABLE `pet_spell_cooldown` DISABLE KEYS */;
|
|
|
|
|
/*!40000 ALTER TABLE `pet_spell_cooldown` ENABLE KEYS */;
|
|
|
|
|
UNLOCK TABLES;
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Table structure for table `petition`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS `petition`;
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
|
|
|
/*!40101 SET character_set_client = utf8 */;
|
2008-10-11 14:16:25 -05:00
|
|
|
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`),
|
|
|
|
|
UNIQUE KEY `index_ownerguid_petitionguid` (`ownerguid`,`petitionguid`)
|
Core/DBLayer: Move tables reserved_name, gameobject_respawn and creature_respawn from WORLD database to CHARACTER database as it's content is realm-specific and should be preserved (thanks to leak for the cleanup)
*** TO PRESERVE (COPY) THE DATA CONTAINED IN THE OLD TABLES, YOU MUST FOLLOW THE FOLLOWING SQL-RECIPE (REPLACE DATABASENAMES WHERE NEEDED!) ***
-- Move creature_respawn from world to characters db
INSERT INTO `characters`.`creature_respawn` (`guid`, `respawntime`, `instance`)
SELECT `guid, `respawntime` `instance` * FROM `world`.`creature_respawn`;
-- Remove creature_respawn table from world db
DROP TABLE `world`.`creature_respawn`;
-- Move gameobject_respawn from world to characters db
INSERT INTO `characters`.`gameobject_respawn` (`guid`, `respawntime`, `instance`)
SELECT `guid`, `respawntime`, `instance` FROM `world`.`gameobject_respawn`;
-- Remove creature_respawn table from world db
DROP TABLE `world`.`gameobject_respawn`;
-- Move reserved names from world to characters db
INSERT INTO `characters`.`reserved_name` (`name`)
SELECT `name` FROM `world`.`reserved_name`;
-- Remove reserved_names table from world db
DROP TABLE `world`.`reserved_name`;
*** THE ABOVE MUST BE DONE, OR EXISTING INSTANCES WILL BE FULLY RESPAWNED - YOU HAVE BEEN WARNED ***
Closes issue 4842. Closes issue 4849.
--HG--
branch : trunk
2010-11-19 15:53:14 +01:00
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Guild System';
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
2008-10-11 14:16:25 -05:00
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Dumping data for table `petition`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
LOCK TABLES `petition` WRITE;
|
|
|
|
|
/*!40000 ALTER TABLE `petition` DISABLE KEYS */;
|
|
|
|
|
/*!40000 ALTER TABLE `petition` ENABLE KEYS */;
|
|
|
|
|
UNLOCK TABLES;
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Table structure for table `petition_sign`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS `petition_sign`;
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
|
|
|
/*!40101 SET character_set_client = utf8 */;
|
2008-10-11 14:16:25 -05:00
|
|
|
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',
|
2010-04-14 13:02:05 +04:00
|
|
|
PRIMARY KEY (`petitionguid`,`playerguid`),
|
2010-09-10 13:37:33 +02:00
|
|
|
INDEX `Idx_playerguid`(`playerguid`),
|
2010-04-14 13:02:05 +04:00
|
|
|
INDEX `Idx_ownerguid`(`ownerguid`)
|
Core/DBLayer: Move tables reserved_name, gameobject_respawn and creature_respawn from WORLD database to CHARACTER database as it's content is realm-specific and should be preserved (thanks to leak for the cleanup)
*** TO PRESERVE (COPY) THE DATA CONTAINED IN THE OLD TABLES, YOU MUST FOLLOW THE FOLLOWING SQL-RECIPE (REPLACE DATABASENAMES WHERE NEEDED!) ***
-- Move creature_respawn from world to characters db
INSERT INTO `characters`.`creature_respawn` (`guid`, `respawntime`, `instance`)
SELECT `guid, `respawntime` `instance` * FROM `world`.`creature_respawn`;
-- Remove creature_respawn table from world db
DROP TABLE `world`.`creature_respawn`;
-- Move gameobject_respawn from world to characters db
INSERT INTO `characters`.`gameobject_respawn` (`guid`, `respawntime`, `instance`)
SELECT `guid`, `respawntime`, `instance` FROM `world`.`gameobject_respawn`;
-- Remove creature_respawn table from world db
DROP TABLE `world`.`gameobject_respawn`;
-- Move reserved names from world to characters db
INSERT INTO `characters`.`reserved_name` (`name`)
SELECT `name` FROM `world`.`reserved_name`;
-- Remove reserved_names table from world db
DROP TABLE `world`.`reserved_name`;
*** THE ABOVE MUST BE DONE, OR EXISTING INSTANCES WILL BE FULLY RESPAWNED - YOU HAVE BEEN WARNED ***
Closes issue 4842. Closes issue 4849.
--HG--
branch : trunk
2010-11-19 15:53:14 +01:00
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Guild System';
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
2008-12-24 09:58:26 -06:00
|
|
|
|
2008-10-11 14:16:25 -05:00
|
|
|
--
|
|
|
|
|
-- Dumping data for table `petition_sign`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
LOCK TABLES `petition_sign` WRITE;
|
|
|
|
|
/*!40000 ALTER TABLE `petition_sign` DISABLE KEYS */;
|
|
|
|
|
/*!40000 ALTER TABLE `petition_sign` ENABLE KEYS */;
|
|
|
|
|
UNLOCK TABLES;
|
|
|
|
|
|
2010-09-14 13:56:27 +02:00
|
|
|
--
|
|
|
|
|
-- Table structure for table `pool_quest_save`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS `pool_quest_save`;
|
|
|
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
|
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
|
|
|
CREATE TABLE `pool_quest_save` (
|
|
|
|
|
`pool_id` int(10) unsigned NOT NULL DEFAULT '0',
|
|
|
|
|
`quest_id` int(10) unsigned NOT NULL DEFAULT '0',
|
|
|
|
|
PRIMARY KEY (`pool_id`,`quest_id`)
|
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
|
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Dumping data for table `pool_quest_save`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
LOCK TABLES `pool_quest_save` WRITE;
|
|
|
|
|
/*!40000 ALTER TABLE `pool_quest_save` DISABLE KEYS */;
|
|
|
|
|
/*!40000 ALTER TABLE `pool_quest_save` ENABLE KEYS */;
|
|
|
|
|
UNLOCK TABLES;
|
|
|
|
|
|
Core/DBLayer: Move tables reserved_name, gameobject_respawn and creature_respawn from WORLD database to CHARACTER database as it's content is realm-specific and should be preserved (thanks to leak for the cleanup)
*** TO PRESERVE (COPY) THE DATA CONTAINED IN THE OLD TABLES, YOU MUST FOLLOW THE FOLLOWING SQL-RECIPE (REPLACE DATABASENAMES WHERE NEEDED!) ***
-- Move creature_respawn from world to characters db
INSERT INTO `characters`.`creature_respawn` (`guid`, `respawntime`, `instance`)
SELECT `guid, `respawntime` `instance` * FROM `world`.`creature_respawn`;
-- Remove creature_respawn table from world db
DROP TABLE `world`.`creature_respawn`;
-- Move gameobject_respawn from world to characters db
INSERT INTO `characters`.`gameobject_respawn` (`guid`, `respawntime`, `instance`)
SELECT `guid`, `respawntime`, `instance` FROM `world`.`gameobject_respawn`;
-- Remove creature_respawn table from world db
DROP TABLE `world`.`gameobject_respawn`;
-- Move reserved names from world to characters db
INSERT INTO `characters`.`reserved_name` (`name`)
SELECT `name` FROM `world`.`reserved_name`;
-- Remove reserved_names table from world db
DROP TABLE `world`.`reserved_name`;
*** THE ABOVE MUST BE DONE, OR EXISTING INSTANCES WILL BE FULLY RESPAWNED - YOU HAVE BEEN WARNED ***
Closes issue 4842. Closes issue 4849.
--HG--
branch : trunk
2010-11-19 15:53:14 +01:00
|
|
|
--
|
|
|
|
|
-- Table structure for table `reserved_name`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
DROP TABLE IF EXISTS `reserved_name`;
|
|
|
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
|
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
|
|
|
CREATE TABLE `reserved_name` (
|
|
|
|
|
`name` varchar(12) NOT NULL DEFAULT '',
|
|
|
|
|
PRIMARY KEY (`name`)
|
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Player Reserved Names';
|
|
|
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
|
|
|
|
|
|
|
--
|
|
|
|
|
-- Dumping data for table `reserved_name`
|
|
|
|
|
--
|
|
|
|
|
|
|
|
|
|
LOCK TABLES `reserved_name` WRITE;
|
|
|
|
|
/*!40000 ALTER TABLE `reserved_name` DISABLE KEYS */;
|
|
|
|
|
/*!40000 ALTER TABLE `reserved_name` ENABLE KEYS */;
|
|
|
|
|
UNLOCK TABLES;
|
|
|
|
|
|
2008-10-11 14:16:25 -05:00
|
|
|
--
|
2010-03-26 16:48:33 +01:00
|
|
|
-- Table structure for table `worldstates`
|
2008-10-11 14:16:25 -05:00
|
|
|
--
|
2008-10-14 12:30:35 -05:00
|
|
|
|
2010-03-26 16:48:33 +01:00
|
|
|
DROP TABLE IF EXISTS `worldstates`;
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
|
|
|
/*!40101 SET character_set_client = utf8 */;
|
2010-03-26 16:48:33 +01:00
|
|
|
CREATE TABLE `worldstates` (
|
|
|
|
|
`entry` mediumint(11) UNSIGNED NOT NULL DEFAULT '0',
|
|
|
|
|
`value` bigint(40) UNSIGNED NOT NULL DEFAULT '0',
|
2010-04-15 21:44:21 +02:00
|
|
|
`comment` text,
|
2010-03-26 16:48:33 +01:00
|
|
|
PRIMARY KEY (`entry`)
|
Core/DBLayer: Move tables reserved_name, gameobject_respawn and creature_respawn from WORLD database to CHARACTER database as it's content is realm-specific and should be preserved (thanks to leak for the cleanup)
*** TO PRESERVE (COPY) THE DATA CONTAINED IN THE OLD TABLES, YOU MUST FOLLOW THE FOLLOWING SQL-RECIPE (REPLACE DATABASENAMES WHERE NEEDED!) ***
-- Move creature_respawn from world to characters db
INSERT INTO `characters`.`creature_respawn` (`guid`, `respawntime`, `instance`)
SELECT `guid, `respawntime` `instance` * FROM `world`.`creature_respawn`;
-- Remove creature_respawn table from world db
DROP TABLE `world`.`creature_respawn`;
-- Move gameobject_respawn from world to characters db
INSERT INTO `characters`.`gameobject_respawn` (`guid`, `respawntime`, `instance`)
SELECT `guid`, `respawntime`, `instance` FROM `world`.`gameobject_respawn`;
-- Remove creature_respawn table from world db
DROP TABLE `world`.`gameobject_respawn`;
-- Move reserved names from world to characters db
INSERT INTO `characters`.`reserved_name` (`name`)
SELECT `name` FROM `world`.`reserved_name`;
-- Remove reserved_names table from world db
DROP TABLE `world`.`reserved_name`;
*** THE ABOVE MUST BE DONE, OR EXISTING INSTANCES WILL BE FULLY RESPAWNED - YOU HAVE BEEN WARNED ***
Closes issue 4842. Closes issue 4849.
--HG--
branch : trunk
2010-11-19 15:53:14 +01:00
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Variable Saves';
|
2010-02-01 18:52:42 +01:00
|
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
2008-10-11 14:16:25 -05:00
|
|
|
|
|
|
|
|
--
|
2010-03-26 16:48:33 +01:00
|
|
|
-- Dumping data for table `worldstates`
|
2008-10-11 14:16:25 -05:00
|
|
|
--
|
|
|
|
|
|
2010-03-26 16:48:33 +01:00
|
|
|
LOCK TABLES `worldstates` WRITE;
|
|
|
|
|
/*!40000 ALTER TABLE `worldstates` DISABLE KEYS */;
|
2010-04-15 21:14:24 +02:00
|
|
|
INSERT INTO `worldstates` (`entry`,`value`, `comment`) VALUES
|
2010-04-15 21:24:59 +02:00
|
|
|
(20001, 0, 'NextArenaPointDistributionTime'),
|
2010-05-26 11:34:37 +02:00
|
|
|
(20002, 0, 'NextWeeklyQuestResetTime'),
|
2010-07-22 13:41:19 -06:00
|
|
|
(20003, 0, 'NextBGRandomDailyResetTime'),
|
|
|
|
|
(20004, 0, 'cleaning_flags');
|
2010-03-26 16:48:33 +01:00
|
|
|
/*!40000 ALTER TABLE `worldstates` ENABLE KEYS */;
|
2008-10-11 14:16:25 -05:00
|
|
|
UNLOCK TABLES;
|
2008-12-26 21:45:02 -06:00
|
|
|
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
|
2008-12-21 09:33:44 -06:00
|
|
|
|
2008-10-11 14:16:25 -05:00
|
|
|
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
|
|
|
|
|
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
|
|
|
|
|
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
|
|
|
|
|
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
|
|
|
|
|
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
|
|
|
|
|
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
|
|
|
|
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
|
|
|
|
|
|
2008-12-24 14:21:43 -06:00
|
|
|
-- Dump completed on 2008-01-10 11:37:06
|
2009-02-17 20:07:49 -06:00
|
|
|
|
2010-02-01 18:52:42 +01:00
|
|
|
-- Updated on 2010-01-29 23:05:45 GMT+1
|