<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateCategory extends Migration { public function up() { Schema::create('category', function (Blueprint $onV5E) { $onV5E->increments('id'); $onV5E->timestamps(); $onV5E->integer('pid')->nullable()->comment('父级分类'); $onV5E->string('title', 20)->nullable()->comment('分类名字'); $onV5E->string('desc', 100)->nullable()->comment('分类描述'); $onV5E->integer('sort')->nullable()->comment('排序'); $onV5E->string('cover', 200)->nullable()->comment('分类图标'); }); } public function down() { } }