27 lines
660 B
PHP
27 lines
660 B
PHP
<?php
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
|
|
class CreateAircraftsTable extends Migration
|
|
{
|
|
public function up()
|
|
{
|
|
Schema::create('aircraft', function (Blueprint $table) {
|
|
$table->increments('id');
|
|
$table->string('icao');
|
|
$table->string('name');
|
|
$table->string('full_name')->nullable();
|
|
$table->string('registration')->nullable();
|
|
$table->boolean('active');
|
|
$table->timestamps();
|
|
$table->softDeletes();
|
|
});
|
|
}
|
|
|
|
public function down()
|
|
{
|
|
Schema::drop('aircraft');
|
|
}
|
|
}
|