<?php
 use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateDocument extends Migration { public function up() { Schema::create('document', function (Blueprint $table) { $table->increments('id'); $table->timestamps(); $table->integer('sort')->nullable()->comment('排序'); $table->string('title', 200)->nullable()->comment('标题'); $table->text('content')->nullable()->comment('内容'); }); } public function down() { } } 