[Bug Fix] Fix Bot Spell Entries IDs Capping at 32,767 (#4444)

* [Bug Fix] Fix Bot Spell Entries IDs Capping at 32,767

* Fix manifest
This commit is contained in:
Alex King
2024-08-26 21:29:50 -04:00
committed by GitHub
parent 40738b29e3
commit 7dfda95d86
4 changed files with 39 additions and 27 deletions
@@ -150,6 +150,17 @@ ADD COLUMN `augment_six` int(11) UNSIGNED NOT NULL DEFAULT 0 AFTER `augment_five
.sql = R"(
ALTER TABLE `bot_data`
ADD COLUMN `extra_haste` mediumint(8) NOT NULL DEFAULT 0 AFTER `wis`;
)"
},
ManifestEntry{
.version = 9045,
.description = "2024_08_05_bot_spells_entries_unsigned_spell_id.sql",
.check = "SHOW COLUMNS FROM `bot_spells_entries` LIKE 'spell_id'",
.condition = "empty",
.match = "",
.sql = R"(
ALTER TABLE `bot_spells_entries`
CHANGE COLUMN `spellid` `spell_id` smallint(5) UNSIGNED NOT NULL DEFAULT 0 AFTER `npc_spells_id`;
)"
}
// -- template; copy/paste this when you need to create a new entry