diff --git a/data/sql/characters/updates/2026_01_30_00_change_to_InnoDB.sql b/data/sql/characters/updates/2026_01_30_00_change_to_InnoDB.sql new file mode 100644 index 00000000..8c2c226b --- /dev/null +++ b/data/sql/characters/updates/2026_01_30_00_change_to_InnoDB.sql @@ -0,0 +1,9 @@ +-- Temporarily disables innodb_strict_mode for the session to allow the script to complete even if legacy table definitions contain InnoDB-incompatible attributes +SET SESSION innodb_strict_mode = 0; + +-- Change the tables to InnoDB +ALTER TABLE playerbots_guild_names ENGINE=InnoDB; +ALTER TABLE playerbots_names ENGINE=InnoDB; + +-- Re-enables innodb_strict_mode +SET SESSION innodb_strict_mode = 1; diff --git a/data/sql/playerbots/updates/2026_01_30_00_change_to_InnoDB.sql b/data/sql/playerbots/updates/2026_01_30_00_change_to_InnoDB.sql new file mode 100644 index 00000000..c7f9c51f --- /dev/null +++ b/data/sql/playerbots/updates/2026_01_30_00_change_to_InnoDB.sql @@ -0,0 +1,18 @@ +-- Temporarily disables innodb_strict_mode for the session to allow the script to complete even if legacy table definitions contain InnoDB-incompatible attributes +SET SESSION innodb_strict_mode = 0; + +-- Change the tables to InnoDB +ALTER TABLE playerbots_dungeon_suggestion_abbrevation ENGINE=InnoDB; +ALTER TABLE playerbots_dungeon_suggestion_definition ENGINE=InnoDB; +ALTER TABLE playerbots_dungeon_suggestion_strategy ENGINE=InnoDB; +ALTER TABLE playerbots_equip_cache ENGINE=InnoDB; +ALTER TABLE playerbots_item_info_cache ENGINE=InnoDB; +ALTER TABLE playerbots_rarity_cache ENGINE=InnoDB; +ALTER TABLE playerbots_rnditem_cache ENGINE=InnoDB; +ALTER TABLE playerbots_tele_cache ENGINE=InnoDB; +ALTER TABLE playerbots_travelnode ENGINE=InnoDB; +ALTER TABLE playerbots_travelnode_link ENGINE=InnoDB; +ALTER TABLE playerbots_travelnode_path ENGINE=InnoDB; + +-- Re-enables innodb_strict_mode +SET SESSION innodb_strict_mode = 1;