40 行
1012 B
PHP
40 行
1012 B
PHP
<?php
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Support\Facades\Schema;
|
|
|
|
class CreateJapanErasTable extends Migration
|
|
{
|
|
/**
|
|
* Run the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function up()
|
|
{
|
|
Schema::create('japan_eras', function (Blueprint $table) {
|
|
$table->id();
|
|
$table->string('name', 255)->nullable();
|
|
$table->string('nameKana', 255)->nullable();
|
|
$table->string('nameEng', 255)->nullable();
|
|
$table->unsignedBigInteger('start');
|
|
$table->unsignedBigInteger('start_date');
|
|
$table->unsignedBigInteger('finish_date');
|
|
$table->unsignedBigInteger('years');
|
|
$table->unsignedBigInteger('current');
|
|
$table->timestamps();
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function down()
|
|
{
|
|
Schema::dropIfExists('japan_eras');
|
|
}
|
|
}
|