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