mirror of
https://github.com/mangosfour/server.git
synced 2025-12-25 04:37:02 +00:00
[10788] Replace bytes in single field bytes2 by independent fields for creature_addon.
This commit is contained in:
parent
9460ed0494
commit
0c8a7c3826
9 changed files with 50 additions and 22 deletions
11
sql/updates/10788_01_mangos_creature_addon.sql
Normal file
11
sql/updates/10788_01_mangos_creature_addon.sql
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
ALTER TABLE db_version CHANGE COLUMN required_10786_02_mangos_spell_proc_event required_10788_01_mangos_creature_addon bit;
|
||||
|
||||
ALTER TABLE creature_addon
|
||||
ADD COLUMN b2_0_sheath tinyint(3) unsigned NOT NULL DEFAULT '0' AFTER bytes1,
|
||||
ADD COLUMN b2_1_pvp_state tinyint(3) unsigned NOT NULL DEFAULT '0' AFTER b2_0_sheath;
|
||||
|
||||
UPDATE creature_addon SET b2_0_sheath = bytes2 & 0x000000FF;
|
||||
UPDATE creature_addon SET b2_1_pvp_state = (bytes2 & 0x0000FF00) >> 8;
|
||||
|
||||
ALTER TABLE creature_addon
|
||||
DROP COLUMN bytes2;
|
||||
Loading…
Add table
Add a link
Reference in a new issue