Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
36 lines (33 sloc) 860 Bytes
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateMdatsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('mdats', function (Blueprint $table) {
$table->bigIncrements('id');
$table->bigInteger('user_id')->nullable(false);
$table->date('date')->nullable()->comment('入力日');
$table->integer('hnum')->nullable(false);
$table->integer('lnum')->nullable(false);
$table->timestamps();
$table->softDeletes();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('mdats');
}
}
You can’t perform that action at this time.