<?php
 use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateCmsProperty extends Migration { public function up() { Schema::create('cms_property', function (Blueprint $table) { $table->increments('id'); $table->timestamps(); $table->integer('categoryId')->nullable()->comment('分类ID'); $table->string('title', 100)->nullable()->comment('标题'); $table->string('cover', 100)->nullable()->comment('封面'); $table->text('content')->nullable()->comment('描述'); }); } public function down() { } } 