-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Prepare importing additional missile data
- Loading branch information
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
36 changes: 36 additions & 0 deletions
36
database/migrations/update/sc/2023_11_25_213235_add_params_to_sc_item_missiles_table.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<?php | ||
|
||
use Illuminate\Database\Migrations\Migration; | ||
use Illuminate\Database\Schema\Blueprint; | ||
use Illuminate\Support\Facades\Schema; | ||
|
||
return new class extends Migration | ||
{ | ||
/** | ||
* Run the migrations. | ||
*/ | ||
public function up(): void | ||
{ | ||
Schema::table('sc_item_missiles', static function (Blueprint $table) { | ||
$table->unsignedDouble('lock_range_max')->nullable()->after('lock_time'); | ||
$table->unsignedDouble('lock_range_min')->nullable()->after('lock_time'); | ||
$table->unsignedDouble('tracking_signal_min')->nullable()->after('lock_time'); | ||
$table->unsignedDouble('speed')->nullable()->after('lock_time'); | ||
$table->unsignedDouble('fuel_tank_size')->nullable()->after('lock_time'); | ||
}); | ||
} | ||
|
||
/** | ||
* Reverse the migrations. | ||
*/ | ||
public function down(): void | ||
{ | ||
Schema::table('sc_item_missiles', static function (Blueprint $table) { | ||
$table->dropColumn('lock_range_max'); | ||
$table->dropColumn('lock_range_min'); | ||
$table->dropColumn('tracking_signal_min'); | ||
$table->dropColumn('speed'); | ||
$table->dropColumn('fuel_tank_size'); | ||
}); | ||
} | ||
}; |