<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateCmsHelpCategory extends Migration { public function up() { if (!\ModStart\Core\Dao\ModelManageUtil::hasTable('cms_help_category')) { Schema::create('cms_help_category', function (Blueprint $pknhs) { $pknhs->increments('id'); $pknhs->timestamps(); $pknhs->integer('pid')->comment('父ID')->nullable(); $pknhs->integer('sort')->comment('排序，越小越靠前')->nullable(); $pknhs->string('name', 20)->nullable()->comment('名称'); }); } } public function down() { } }