From 553799ada0e5bed119602c84e8e49f68e655cc78 Mon Sep 17 00:00:00 2001 From: FlagFlayer <76889547+FlagFlayer@users.noreply.github.com> Date: Tue, 24 Sep 2024 22:10:58 +0300 Subject: [PATCH] Correct conditions for Draconic for Dummies books for The Only Prescription (#2778) --- sql/migrations/20240924095236_world.sql | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 sql/migrations/20240924095236_world.sql diff --git a/sql/migrations/20240924095236_world.sql b/sql/migrations/20240924095236_world.sql new file mode 100644 index 00000000000..06e014ccdae --- /dev/null +++ b/sql/migrations/20240924095236_world.sql @@ -0,0 +1,22 @@ +DROP PROCEDURE IF EXISTS add_migration; +DELIMITER ?? +CREATE PROCEDURE `add_migration`() +BEGIN +DECLARE v INT DEFAULT 1; +SET v = (SELECT COUNT(*) FROM `migrations` WHERE `id`='20240924095236'); +IF v = 0 THEN +INSERT INTO `migrations` VALUES ('20240924095236'); +-- Add your query below. + +-- Correct condition for Chapter V gossip menu +UPDATE `gossip_menu_option` SET `condition_id` = 150 WHERE `menu_id` = 6669; + +-- Correct condition for Chapter VII gossip menu +UPDATE `gossip_menu_option` SET `condition_id` = 151 WHERE `menu_id` = 6668; + +-- End of migration. +END IF; +END?? +DELIMITER ; +CALL add_migration(); +DROP PROCEDURE IF EXISTS add_migration;