<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateCmsProperty extends Migration { public function up() { Schema::create('cms_property', function (Blueprint $fnOXp) { $fnOXp->increments('id'); $fnOXp->timestamps(); $fnOXp->integer('categoryId')->nullable()->comment('分类ID'); $fnOXp->string('title', 100)->nullable()->comment('标题'); $fnOXp->string('cover', 100)->nullable()->comment('封面'); $fnOXp->text('content')->nullable()->comment('描述'); }); } public function down() { } }