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