From 1ebbf1877f779a242b87752880e7c653dc16b661 Mon Sep 17 00:00:00 2001 From: HilbertIdeals5 Date: Sat, 18 Apr 2026 16:18:59 -0400 Subject: [PATCH] Fix AddLevelDecodeToBxtBattleTowerRoomLeaders migration to check for and create the 'level' column --- ...3500_add_level_decode_to_bxt_battle_tower_room_leaders.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/db/migrations/20251222233500_add_level_decode_to_bxt_battle_tower_room_leaders.php b/db/migrations/20251222233500_add_level_decode_to_bxt_battle_tower_room_leaders.php index 3836c95..6debf15 100644 --- a/db/migrations/20251222233500_add_level_decode_to_bxt_battle_tower_room_leaders.php +++ b/db/migrations/20251222233500_add_level_decode_to_bxt_battle_tower_room_leaders.php @@ -47,6 +47,10 @@ public function up(): void return; } + if (!$this->columnExists('bxt_battle_tower_room_leaders', 'level')) { + $this->execute("ALTER TABLE bxt_battle_tower_room_leaders ADD level tinyint(3) unsigned DEFAULT NULL"); + } + $this->table('bxt_battle_tower_room_leaders') ->addColumn('level_decode', 'string', [ 'limit' => 16,