mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 13:37:05 +00:00
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.
12 lines
470 B
SQL
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;
|