server/sql/updates/11190_01_mangos_pool_creature_template.sql
VladimirMangos c7eb17b912 [11190] Implement pool_creature_template/pool_gameobject_template.
New table similar `pool_creature`/`pool_gameobject` but store creature/go ids
instead guids. At loading to poll added all guids for specific entry id.
This let not list explictly guids when need list in pool all guids for some entry id.
Mostly for quest pool spawns or unique creature/go random possitions for example.

At load tested that guid added to pool using new tables data not listed in guid tables.
2011-02-20 07:35:14 +03:00

13 lines
498 B
SQL

ALTER TABLE db_version CHANGE COLUMN required_11169_02_mangos_command required_11190_01_mangos_pool_creature_template bit;
DROP TABLE IF EXISTS `pool_creature_template`;
CREATE TABLE `pool_creature_template` (
`id` int(10) unsigned NOT NULL default '0',
`pool_entry` mediumint(8) unsigned NOT NULL default '0',
`chance` float unsigned NOT NULL default '0',
`description` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
INDEX `pool_idx` (pool_entry)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;