up()
up() : void
Run the migrations.
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class CreateWrittenAnswersTable extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('written_answers', function(Blueprint $table)
{
$table->integer('id', true);
$table->integer('user_id')->nullable();
$table->integer('written_id')->nullable();
$table->string('answer')->nullable();
$table->integer('score')->nullable();
$table->integer('fake')->nullable();
$table->integer('exam_id')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('written_answers');
}
}