<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; class ResCategoryCreate extends Migration { public function up() { Schema::create('res_category', function (Blueprint $GocOS) { $GocOS->increments('id'); $GocOS->timestamps(); $GocOS->integer('pid')->nullable()->comment(''); $GocOS->integer('sort')->nullable()->comment(''); $GocOS->string('title', 20)->nullable()->comment(''); $GocOS->string('cover', 200)->nullable()->comment(''); $GocOS->string('desc', 400)->nullable()->comment(''); $GocOS->tinyInteger('showHome')->nullable()->comment(''); $GocOS->integer('resCount')->nullable()->comment(''); }); } public function down() { } }