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,