mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 10:37:02 +00:00
[11876] Fix table layout for creature_linking_template
Also change `spell_pet_auras` and `spell_script_target` default charset to utf8 as expected. Check your SQL Userguide for proper charset convertion, but this should not be required Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
This commit is contained in:
parent
8068dcf6dd
commit
14b001ff2a
4 changed files with 18 additions and 11 deletions
|
|
@ -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_11852_01_mangos_gossip_menu` bit(1) default NULL
|
||||
`required_11876_01_mangos_creature_linking_template` bit(1) default NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Used DB version notes';
|
||||
|
||||
--
|
||||
|
|
@ -951,14 +951,15 @@ UNLOCK TABLES;
|
|||
--
|
||||
|
||||
DROP TABLE IF EXISTS creature_linking_template;
|
||||
CREATE TABLE creature_linking_template (
|
||||
entry INT(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'creature_template.entry of the slave mob that is linked',
|
||||
map MEDIUMINT(8) UNSIGNED NOT NULL COMMENT 'Id of map of the mobs',
|
||||
master_entry INT(10) UNSIGNED NOT NULL COMMENT 'master to trigger events',
|
||||
flag MEDIUMINT(8) UNSIGNED NOT NULL COMMENT 'flag - describing what should happen when',
|
||||
PRIMARY KEY (entry, map)
|
||||
CREATE TABLE `creature_linking_template` (
|
||||
`entry` mediumint(8) UNSIGNED NOT NULL DEFAULT '0' COMMENT 'creature_template.entry of the slave mob that is linked',
|
||||
`map` SMALLINT(5) UNSIGNED NOT NULL DEFAULT '0' COMMENT 'Id of map of the mobs',
|
||||
`master_entry` mediumint(8) UNSIGNED NOT NULL DEFAULT '0' COMMENT 'master to trigger events',
|
||||
`flag` mediumint(8) UNSIGNED NOT NULL DEFAULT '0' COMMENT 'flag - describing what should happen when',
|
||||
PRIMARY KEY (`entry`,`map`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Creature Linking System';
|
||||
|
||||
|
||||
--
|
||||
-- Dumping data for table `creature_linking_template`
|
||||
--
|
||||
|
|
@ -17025,7 +17026,7 @@ CREATE TABLE `spell_pet_auras` (
|
|||
`pet` mediumint(8) unsigned NOT NULL default '0' COMMENT 'pet id; 0 = all',
|
||||
`aura` mediumint(8) unsigned NOT NULL COMMENT 'pet aura id',
|
||||
PRIMARY KEY (`spell`,`effectId`,`pet`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
||||
|
||||
--
|
||||
-- Dumping data for table `spell_pet_auras`
|
||||
|
|
@ -17824,7 +17825,7 @@ CREATE TABLE `spell_script_target` (
|
|||
`type` tinyint(3) unsigned NOT NULL default '0',
|
||||
`targetEntry` mediumint(8) unsigned NOT NULL default '0',
|
||||
UNIQUE KEY `entry_type_target` (`entry`,`type`,`targetEntry`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='Spell System';
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='Spell System';
|
||||
|
||||
--
|
||||
-- Dumping data for table `spell_script_target`
|
||||
|
|
|
|||
|
|
@ -0,0 +1,6 @@
|
|||
ALTER TABLE db_version CHANGE COLUMN required_11852_01_mangos_gossip_menu required_11876_01_mangos_creature_linking_template bit;
|
||||
|
||||
ALTER TABLE `creature_linking_template` CHANGE COLUMN `entry` `entry` mediumint(8) UNSIGNED NOT NULL DEFAULT 0 COMMENT 'creature_template.entry of the slave mob that is linked';
|
||||
ALTER TABLE `creature_linking_template` CHANGE COLUMN `map` `map` SMALLINT(5) UNSIGNED NOT NULL DEFAULT 0 COMMENT 'Id of map of the mobs';
|
||||
ALTER TABLE `creature_linking_template` CHANGE COLUMN `master_entry` `master_entry` mediumint(8) UNSIGNED NOT NULL DEFAULT 0 COMMENT 'master to trigger events';
|
||||
ALTER TABLE `creature_linking_template` CHANGE COLUMN `flag` `flag` mediumint(8) UNSIGNED NOT NULL DEFAULT 0 COMMENT 'flag - describing what should happen when';
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "11875"
|
||||
#define REVISION_NR "11876"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#ifndef __REVISION_SQL_H__
|
||||
#define __REVISION_SQL_H__
|
||||
#define REVISION_DB_CHARACTERS "required_11785_02_characters_instance"
|
||||
#define REVISION_DB_MANGOS "required_11852_01_mangos_gossip_menu"
|
||||
#define REVISION_DB_MANGOS "required_11876_01_mangos_creature_linking_template"
|
||||
#define REVISION_DB_REALMD "required_10008_01_realmd_realmd_db_version"
|
||||
#endif // __REVISION_SQL_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue