mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[7902] Speed up Creature and GO loads.
This commit is contained in:
parent
4d8adefe70
commit
c87e51dae5
5 changed files with 18 additions and 4 deletions
|
|
@ -23,7 +23,7 @@ DROP TABLE IF EXISTS `db_version`;
|
|||
CREATE TABLE `db_version` (
|
||||
`version` varchar(120) default NULL,
|
||||
`creature_ai_version` varchar(120) default NULL,
|
||||
`required_7896_01_mangos_creature_template` bit(1) default NULL
|
||||
`required_7902_02_mangos_pool_gameobject` bit(1) default NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Used DB version notes';
|
||||
|
||||
--
|
||||
|
|
@ -12938,7 +12938,8 @@ CREATE TABLE `pool_creature` (
|
|||
`pool_entry` mediumint(8) unsigned NOT NULL default '0',
|
||||
`chance` float unsigned NOT NULL default '0',
|
||||
`description` varchar(255) NOT NULL,
|
||||
PRIMARY KEY (`pool_entry`,`guid`)
|
||||
PRIMARY KEY (`pool_entry`,`guid`),
|
||||
INDEX `idx_guid`(`guid`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
||||
|
||||
|
||||
|
|
@ -12961,7 +12962,8 @@ CREATE TABLE `pool_gameobject` (
|
|||
`pool_entry` mediumint(8) unsigned NOT NULL default '0',
|
||||
`chance` float unsigned NOT NULL default '0',
|
||||
`description` varchar(255) NOT NULL,
|
||||
PRIMARY KEY (`guid`,`pool_entry`)
|
||||
PRIMARY KEY (`guid`,`pool_entry`),
|
||||
INDEX `idx_guid`(`guid`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
||||
|
||||
--
|
||||
|
|
|
|||
4
sql/updates/7902_01_mangos_pool_creature.sql
Normal file
4
sql/updates/7902_01_mangos_pool_creature.sql
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
ALTER TABLE db_version CHANGE COLUMN required_7896_01_mangos_creature_template required_7902_01_mangos_pool_creature bit;
|
||||
|
||||
ALTER TABLE `pool_creature`
|
||||
ADD INDEX `idx_guid`(`guid`);
|
||||
4
sql/updates/7902_02_mangos_pool_gameobject.sql
Normal file
4
sql/updates/7902_02_mangos_pool_gameobject.sql
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
ALTER TABLE db_version CHANGE COLUMN required_7902_01_mangos_pool_creature required_7902_02_mangos_pool_gameobject bit;
|
||||
|
||||
ALTER TABLE `pool_gameobject`
|
||||
ADD INDEX `idx_guid`(`guid`);
|
||||
|
|
@ -201,6 +201,8 @@ pkgdata_DATA = \
|
|||
7887_01_characters_character_pet.sql \
|
||||
7893_01_mangos_command.sql \
|
||||
7896_01_mangos_creature_template.sql \
|
||||
7902_01_mangos_pool_creature.sql \
|
||||
7902_02_mangos_pool_gameobject.sql \
|
||||
README
|
||||
|
||||
## Additional files to include when running 'make dist'
|
||||
|
|
@ -382,4 +384,6 @@ EXTRA_DIST = \
|
|||
7887_01_characters_character_pet.sql \
|
||||
7893_01_mangos_command.sql \
|
||||
7896_01_mangos_creature_template.sql \
|
||||
7902_01_mangos_pool_creature.sql \
|
||||
7902_02_mangos_pool_gameobject.sql \
|
||||
README
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "7901"
|
||||
#define REVISION_NR "7902"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue