mein-sterntours/database/migrations/2020_03_27_095607_create_airlines_table.php
2020-04-15 12:11:42 +02:00

35 lines
742 B
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateAirlinesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('airlines', function (Blueprint $table) {
$table->bigIncrements('id');
$table->string('name', 255);
$table->string('name_full', 255);
$table->text('contact_emails')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('airlines');
}
}