From add0a8dddf725247bd7a4768886b328036282f49 Mon Sep 17 00:00:00 2001 From: Mitch Freeman <65987027+neckkola@users.noreply.github.com> Date: Mon, 4 Mar 2024 20:02:35 -0400 Subject: [PATCH] [Bug Fix] Add id to the guild_bank table (#4155) * Add id to guild_bank table Add id as a primary key to guild_bank * Remove content schema update flag --- common/database/database_update_manifest.cpp | 12 ++++++++++++ common/version.h | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/common/database/database_update_manifest.cpp b/common/database/database_update_manifest.cpp index ebce02bad..9a2b5ab23 100644 --- a/common/database/database_update_manifest.cpp +++ b/common/database/database_update_manifest.cpp @@ -5410,6 +5410,18 @@ ADD COLUMN `augment_five` int(11) UNSIGNED NOT NULL DEFAULT 0 AFTER `augment_fou ADD COLUMN `augment_six` int(11) UNSIGNED NOT NULL DEFAULT 0 AFTER `augment_five`; )", .content_schema_update = true + }, + ManifestEntry{ + .version = 9265, + .description = "2024_03_03_add_id_to_guild_bank.sql", + .check = "SHOW COLUMNS FROM `guild_bank` LIKE 'id'", + .condition = "empty", + .match = "", + .sql = R"( +ALTER TABLE `guild_bank` +ADD COLUMN `id` INT UNSIGNED NOT NULL AUTO_INCREMENT FIRST, +ADD PRIMARY KEY (`id`); + )", } // -- template; copy/paste this when you need to create a new entry // ManifestEntry{ diff --git a/common/version.h b/common/version.h index 4b0eac81c..cecb311df 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 9264 +#define CURRENT_BINARY_DATABASE_VERSION 9265 #define CURRENT_BINARY_BOTS_DATABASE_VERSION 9043 #endif