<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class CreateExamProblemsTable extends Migration {
public function up()
{
Schema::create('exam_problems', function(Blueprint $table)
{
$table->integer('id', true);
$table->string('title')->nullable();
$table->integer('submited')->unsigned()->nullable()->default(0);
$table->integer('difficulty')->unsigned()->nullable()->default(0);
$table->integer('score')->nullable();
});
}
public function down()
{
Schema::drop('exam_problems');
}
}