From c313cdfa8eb6f6150e6b2df8a557ab2d46cbf54e Mon Sep 17 00:00:00 2001 From: Revision Date: Sat, 19 Oct 2024 03:10:46 +0200 Subject: [PATCH] Move tables into their own files --- ...layerbots_text.sql => ai_playerbot_texts.sql} | 16 ---------------- .../base/ai_playerbot_texts_chance.sql | 14 ++++++++++++++ 2 files changed, 14 insertions(+), 16 deletions(-) rename sql/playerbots/base/{playerbots_text.sql => ai_playerbot_texts.sql} (99%) create mode 100644 sql/playerbots/base/ai_playerbot_texts_chance.sql diff --git a/sql/playerbots/base/playerbots_text.sql b/sql/playerbots/base/ai_playerbot_texts.sql similarity index 99% rename from sql/playerbots/base/playerbots_text.sql rename to sql/playerbots/base/ai_playerbot_texts.sql index 881e4671..718db731 100644 --- a/sql/playerbots/base/playerbots_text.sql +++ b/sql/playerbots/base/ai_playerbot_texts.sql @@ -1457,19 +1457,3 @@ INSERT INTO `ai_playerbot_texts` (`name`, `text`, `say_type`, `reply_type`, `tex ('dummy_end', 'dummy', 0, 0, '', '', '', '', '', '', '', ''); - -DROP TABLE IF EXISTS `ai_playerbot_texts_chance`; - -CREATE TABLE IF NOT EXISTS `ai_playerbot_texts_chance` ( - `id` bigint(20) NOT NULL AUTO_INCREMENT, - `name` varchar(255) NOT NULL, - `probability` bigint(20) NOT NULL, - PRIMARY KEY (`id`) -) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=UTF8; - -/*!40000 ALTER TABLE `ai_playerbot_texts_chance` DISABLE KEYS */; -INSERT INTO `ai_playerbot_texts_chance` (`id`, `name`, `probability`) VALUES - (1, 'taunt', 30), - (2, 'aoe', 75), - (3, 'loot', 20); -/*!40000 ALTER TABLE `ai_playerbot_texts_chance` ENABLE KEYS */; \ No newline at end of file diff --git a/sql/playerbots/base/ai_playerbot_texts_chance.sql b/sql/playerbots/base/ai_playerbot_texts_chance.sql new file mode 100644 index 00000000..81218dba --- /dev/null +++ b/sql/playerbots/base/ai_playerbot_texts_chance.sql @@ -0,0 +1,14 @@ +DROP TABLE IF EXISTS `ai_playerbot_texts_chance`; +CREATE TABLE IF NOT EXISTS `ai_playerbot_texts_chance` ( + `id` bigint(20) NOT NULL AUTO_INCREMENT, + `name` varchar(255) NOT NULL, + `probability` bigint(20) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=UTF8; + +/*!40000 ALTER TABLE `ai_playerbot_texts_chance` DISABLE KEYS */; +INSERT INTO `ai_playerbot_texts_chance` (`id`, `name`, `probability`) VALUES + (1, 'taunt', 30), + (2, 'aoe', 75), + (3, 'loot', 20); +/*!40000 ALTER TABLE `ai_playerbot_texts_chance` ENABLE KEYS */;