up()
up() : void
Run the migrations.
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class CreateExamUserRecordTable extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('exam_user_record', function(Blueprint $table)
{
$table->integer('id', true);
$table->integer('user_id')->nullable();
$table->integer('mechine_id')->nullable();
$table->integer('exam_id')->nullable();
$table->integer('room_id')->nullable();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('exam_user_record');
}
}