server/sql/updates/10263_02_mangos_pool_gameobject.sql
VladimirMangos 8a3a03e0a6 [10263] Not allow listing pool elements in more one pool.
NOTE: sql update remove forbided by commit duplicates from pool_* tables in random way.
      So for more porper results DB better manually check and fix before apply it.
      This is mostly note for DB projects devs.
2010-07-24 18:49:32 +04:00

12 lines
470 B
SQL

ALTER TABLE db_version CHANGE COLUMN required_10263_01_mangos_pool_creature required_10263_02_mangos_pool_gameobject bit;
DROP TABLE IF EXISTS pool_gameobject_temp;
CREATE TABLE pool_gameobject_temp
SELECT guid, pool_entry, chance, description FROM pool_gameobject GROUP BY guid;
ALTER TABLE pool_gameobject_temp
ADD PRIMARY KEY (guid),
ADD INDEX pool_idx (pool_entry);
DROP TABLE IF EXISTS pool_gameobject;
RENAME TABLE pool_gameobject_temp TO pool_gameobject;