phpvms/database/migrations/2017_06_08_191703_create_airlines_table.php
2017-06-08 20:02:52 -05:00

36 lines
696 B
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class CreateAirlinesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('airlines', function (Blueprint $table) {
$table->increments('id');
$table->string('code');
$table->string('name');
$table->boolean('enabled');
$table->timestamps();
$table->softDeletes();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('airlines');
}
}