From 03b30d5c7af0aecfab5459d40c6777b6b62fabf3 Mon Sep 17 00:00:00 2001 From: Chris Miles Date: Tue, 7 Jan 2025 13:46:32 -0600 Subject: [PATCH] [Database] Change npc_types walkspeed to be of type float (#4589) * [Database] Change npc_types walkspeed to be of type float * Update database_update_manifest.cpp --- common/database/database_update_manifest.cpp | 11 +++++++++++ common/version.h | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/common/database/database_update_manifest.cpp b/common/database/database_update_manifest.cpp index 61186a205..fde8820f0 100644 --- a/common/database/database_update_manifest.cpp +++ b/common/database/database_update_manifest.cpp @@ -5782,6 +5782,17 @@ CREATE INDEX idx_bot_expires ON data_buckets (bot_id, expires); ALTER TABLE `trader` ADD COLUMN `char_zone_instance_id` INT NULL DEFAULT '0' AFTER `char_zone_id`; )" + }, + ManifestEntry{ + .version = 9287, + .description = "2024_11_26_bazaar_find_trader.sql", + .check = "SHOW COLUMNS FROM `npc_types` LIKE 'walkspeed'", + .condition = "missing", + .match = "float", + .sql = R"( +ALTER TABLE `npc_types` MODIFY COLUMN `walkspeed` float NOT NULL DEFAULT 0; +)", + .content_schema_update = true } // -- template; copy/paste this when you need to create a new entry // ManifestEntry{ diff --git a/common/version.h b/common/version.h index 919b8f64c..192a20614 100644 --- a/common/version.h +++ b/common/version.h @@ -42,7 +42,7 @@ * Manifest: https://github.com/EQEmu/Server/blob/master/utils/sql/db_update_manifest.txt */ -#define CURRENT_BINARY_DATABASE_VERSION 9286 +#define CURRENT_BINARY_DATABASE_VERSION 9287 #define CURRENT_BINARY_BOTS_DATABASE_VERSION 9045 #endif