mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 13:37:05 +00:00
[10503] Move *_respawn tables to characters DB.
This allow have in `mangos` DB only world static state data. Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
c5b0593855
commit
20f4a16f01
12 changed files with 102 additions and 107 deletions
|
|
@ -21,7 +21,7 @@
|
|||
|
||||
DROP TABLE IF EXISTS `character_db_version`;
|
||||
CREATE TABLE `character_db_version` (
|
||||
`required_10332_02_characters_pet_aura` bit(1) default NULL
|
||||
`required_10503_02_characters_gameobject_respawn` bit(1) default NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Last applied sql update to DB';
|
||||
|
||||
--
|
||||
|
|
@ -1019,6 +1019,50 @@ LOCK TABLES `corpse` WRITE;
|
|||
/*!40000 ALTER TABLE `corpse` ENABLE KEYS */;
|
||||
UNLOCK TABLES;
|
||||
|
||||
--
|
||||
-- Table structure for table `creature_respawn`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `creature_respawn`;
|
||||
CREATE TABLE `creature_respawn` (
|
||||
`guid` int(10) unsigned NOT NULL default '0' COMMENT 'Global Unique Identifier',
|
||||
`respawntime` bigint(20) NOT NULL default '0',
|
||||
`instance` mediumint(8) unsigned NOT NULL default '0',
|
||||
PRIMARY KEY (`guid`,`instance`),
|
||||
KEY `instance` (`instance`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Grid Loading System';
|
||||
|
||||
--
|
||||
-- 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`;
|
||||
CREATE TABLE `gameobject_respawn` (
|
||||
`guid` int(10) unsigned NOT NULL default '0' COMMENT 'Global Unique Identifier',
|
||||
`respawntime` bigint(20) NOT NULL default '0',
|
||||
`instance` mediumint(8) unsigned NOT NULL default '0',
|
||||
PRIMARY KEY (`guid`,`instance`),
|
||||
KEY `instance` (`instance`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Grid Loading System';
|
||||
|
||||
--
|
||||
-- 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;
|
||||
|
||||
--
|
||||
-- Table structure for table `groups`
|
||||
--
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ CREATE TABLE `db_version` (
|
|||
`version` varchar(120) default NULL,
|
||||
`creature_ai_version` varchar(120) default NULL,
|
||||
`cache_id` int(10) default '0',
|
||||
`required_10500_01_mangos_scripts` bit(1) default NULL
|
||||
`required_10503_04_mangos_gameobject_respawn` bit(1) default NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Used DB version notes';
|
||||
|
||||
--
|
||||
|
|
@ -1166,28 +1166,6 @@ LOCK TABLES `creature_questrelation` WRITE;
|
|||
/*!40000 ALTER TABLE `creature_questrelation` ENABLE KEYS */;
|
||||
UNLOCK TABLES;
|
||||
|
||||
--
|
||||
-- Table structure for table `creature_respawn`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `creature_respawn`;
|
||||
CREATE TABLE `creature_respawn` (
|
||||
`guid` int(10) unsigned NOT NULL default '0' COMMENT 'Global Unique Identifier',
|
||||
`respawntime` bigint(20) NOT NULL default '0',
|
||||
`instance` mediumint(8) unsigned NOT NULL default '0',
|
||||
PRIMARY KEY (`guid`,`instance`),
|
||||
KEY `instance` (`instance`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Grid Loading System';
|
||||
|
||||
--
|
||||
-- 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 `creature_template`
|
||||
--
|
||||
|
|
@ -1931,28 +1909,6 @@ LOCK TABLES `gameobject_questrelation` WRITE;
|
|||
/*!40000 ALTER TABLE `gameobject_questrelation` ENABLE KEYS */;
|
||||
UNLOCK TABLES;
|
||||
|
||||
--
|
||||
-- Table structure for table `gameobject_respawn`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `gameobject_respawn`;
|
||||
CREATE TABLE `gameobject_respawn` (
|
||||
`guid` int(10) unsigned NOT NULL default '0' COMMENT 'Global Unique Identifier',
|
||||
`respawntime` bigint(20) NOT NULL default '0',
|
||||
`instance` mediumint(8) unsigned NOT NULL default '0',
|
||||
PRIMARY KEY (`guid`,`instance`),
|
||||
KEY `instance` (`instance`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Grid Loading System';
|
||||
|
||||
--
|
||||
-- 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;
|
||||
|
||||
--
|
||||
-- Table structure for table `gameobject_scripts`
|
||||
--
|
||||
|
|
|
|||
10
sql/updates/10503_01_characters_creature_respawn.sql
Normal file
10
sql/updates/10503_01_characters_creature_respawn.sql
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
ALTER TABLE character_db_version CHANGE COLUMN required_10332_02_characters_pet_aura required_10503_01_characters_creature_respawn bit;
|
||||
|
||||
DROP TABLE IF EXISTS `creature_respawn`;
|
||||
CREATE TABLE `creature_respawn` (
|
||||
`guid` int(10) unsigned NOT NULL default '0' COMMENT 'Global Unique Identifier',
|
||||
`respawntime` bigint(20) NOT NULL default '0',
|
||||
`instance` mediumint(8) unsigned NOT NULL default '0',
|
||||
PRIMARY KEY (`guid`,`instance`),
|
||||
KEY `instance` (`instance`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Grid Loading System';
|
||||
10
sql/updates/10503_02_characters_gameobject_respawn.sql
Normal file
10
sql/updates/10503_02_characters_gameobject_respawn.sql
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
ALTER TABLE character_db_version CHANGE COLUMN required_10503_01_characters_creature_respawn required_10503_02_characters_gameobject_respawn bit;
|
||||
|
||||
DROP TABLE IF EXISTS `gameobject_respawn`;
|
||||
CREATE TABLE `gameobject_respawn` (
|
||||
`guid` int(10) unsigned NOT NULL default '0' COMMENT 'Global Unique Identifier',
|
||||
`respawntime` bigint(20) NOT NULL default '0',
|
||||
`instance` mediumint(8) unsigned NOT NULL default '0',
|
||||
PRIMARY KEY (`guid`,`instance`),
|
||||
KEY `instance` (`instance`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Grid Loading System';
|
||||
3
sql/updates/10503_03_mangos_creature_respawn.sql
Normal file
3
sql/updates/10503_03_mangos_creature_respawn.sql
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
ALTER TABLE db_version CHANGE COLUMN required_10500_01_mangos_scripts required_10503_03_mangos_creature_respawn bit;
|
||||
|
||||
DROP TABLE IF EXISTS `creature_respawn`;
|
||||
3
sql/updates/10503_04_mangos_gameobject_respawn.sql
Normal file
3
sql/updates/10503_04_mangos_gameobject_respawn.sql
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
ALTER TABLE db_version CHANGE COLUMN required_10503_03_mangos_creature_respawn required_10503_04_mangos_gameobject_respawn bit;
|
||||
|
||||
DROP TABLE IF EXISTS `gameobject_respawn`;
|
||||
|
|
@ -97,6 +97,10 @@ pkgdata_DATA = \
|
|||
10454_01_mangos_spell_proc_event.sql \
|
||||
10457_01_mangos_spell_proc_event.sql \
|
||||
10500_01_mangos_scripts.sql \
|
||||
10503_01_characters_creature_respawn.sql \
|
||||
10503_02_characters_gameobject_respawn.sql \
|
||||
10503_03_mangos_creature_respawn.sql \
|
||||
10503_04_mangos_gameobject_respawn.sql \
|
||||
README
|
||||
|
||||
## Additional files to include when running 'make dist'
|
||||
|
|
@ -174,4 +178,8 @@ EXTRA_DIST = \
|
|||
10454_01_mangos_spell_proc_event.sql \
|
||||
10457_01_mangos_spell_proc_event.sql \
|
||||
10500_01_mangos_scripts.sql \
|
||||
10503_01_characters_creature_respawn.sql \
|
||||
10503_02_characters_gameobject_respawn.sql \
|
||||
10503_03_mangos_creature_respawn.sql \
|
||||
10503_04_mangos_gameobject_respawn.sql \
|
||||
README
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue