このリポジトリは2023-09-09にアーカイブされています。 ファイルの閲覧とクローンは可能ですが、プッシュ、イシューの作成、プルリクエストはできません。
076server/database/migrations/2021_10_15_230354_create_ja...

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');
}
}