Skip to content

Commit

Permalink
feat: Prepare importing additional missile data
Browse files Browse the repository at this point in the history
  • Loading branch information
octfx committed Nov 25, 2023
1 parent 97e7326 commit 5b641b3
Showing 1 changed file with 36 additions and 0 deletions.
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');
});
}
};

0 comments on commit 5b641b3

Please sign in to comment.