<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class CreateWrittensTable extends Migration {
public function up()
{
Schema::create('writtens', function(Blueprint $table)
{
$table->integer('id', true);
$table->string('title')->nullable();
$table->text('content', 65535)->nullable();
$table->integer('type')->nullable();
$table->string('key')->nullable();
$table->integer('score')->nullable();
$table->timestamps();
});
}
public function down()
{
Schema::drop('writtens');
}
}