Skip to content

Commit

Permalink
[0708] Add s2464_01_mangos_string_id core revision
Browse files Browse the repository at this point in the history
  • Loading branch information
AnonXS committed Apr 15, 2023
1 parent 7796dfe commit 33b89ab
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Updates/0708_world_dberrors.sql
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
-- Fix some DB errors

-- s2464_01_mangos_string_id
-- https://github.com/cmangos/mangos-tbc/commit/68726e856f17534ecd669e2e7d78fdb773ee8fe9
ALTER TABLE db_version CHANGE COLUMN required_s2463_01_mangos_spawn_data_equip required_s2464_01_mangos_string_id bit;

ALTER TABLE creature_spawn_data_template ADD COLUMN `StringId` INT(11) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE gameobject_addon ADD COLUMN `StringId` INT(11) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE spawn_group ADD COLUMN `StringId` INT(11) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE creature_template ADD COLUMN `StringId1` INT(11) UNSIGNED NOT NULL DEFAULT '0' AFTER `SpellList`;
ALTER TABLE creature_template ADD COLUMN `StringId2` INT(11) UNSIGNED NOT NULL DEFAULT '0' AFTER `StringId1`;
ALTER TABLE gameobject_template ADD COLUMN `StringId` INT(11) UNSIGNED NOT NULL DEFAULT '0' AFTER `maxgold`;
ALTER TABLE `creature_spawn_data_template` ADD COLUMN `Name` VARCHAR(200) NOT NULL;
UPDATE creature_spawn_data_template SET Name='GENERIC - NONE - DO NOT EDIT' WHERE entry IN(0);
UPDATE creature_spawn_data_template SET Name='GENERIC - SPAWN FLAG RUN' WHERE entry IN(1);
UPDATE creature_spawn_data_template SET Name='GENERIC - SPAWN FLAG HOVER' WHERE entry IN(2);
UPDATE creature_spawn_data_template SET Name='GENERIC - SPAWN FLAG RUN + HOVER' WHERE entry IN(3);

-- dbscripts_on_relay
-- Vanilla: 0 – 9999
-- TBC: 10000 – 19999
Expand Down

0 comments on commit 33b89ab

Please sign in to comment.