adrema/database/migrations/2018_01_14_235348_create_na...

34 lines
686 B
PHP
Raw Normal View History

2020-04-10 20:32:12 +02:00
<?php
use Illuminate\Support\Facades\Schema;
2020-04-12 00:26:44 +02:00
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
2020-04-10 20:32:12 +02:00
2020-04-12 00:26:44 +02:00
class CreateNationalitiesTable extends Migration
2020-04-10 20:32:12 +02:00
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
2020-04-12 00:26:44 +02:00
Schema::create('nationalities', function (Blueprint $table) {
$table->increments('id');
2020-04-10 20:32:12 +02:00
$table->string('name');
2020-04-12 00:26:44 +02:00
$table->integer('nami_id');
2020-04-10 20:32:12 +02:00
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
2020-04-12 00:26:44 +02:00
Schema::dropIfExists('nationalities');
2020-04-10 20:32:12 +02:00
}
}