<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateCmsPropertyCategory extends Migration { public function up() { Schema::create('cms_property_category', function (Blueprint $fnOXp) { $fnOXp->increments('id'); $fnOXp->timestamps(); $fnOXp->integer('pid')->nullable()->comment('上级分类'); $fnOXp->integer('sort')->nullable()->comment('排序'); $fnOXp->string('title', 50)->nullable()->comment('名称'); $fnOXp->index(array('pid')); }); } public function down() { } }