<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateCmsHelp extends Migration { public function up() { if (!\ModStart\Core\Dao\ModelManageUtil::hasTable('cms_help')) { Schema::create('cms_help', function (Blueprint $pknhs) { $pknhs->increments('id'); $pknhs->timestamps(); $pknhs->integer('categoryId')->comment('分类ID')->nullable(); $pknhs->string('title', 200)->nullable()->comment('标题'); $pknhs->string('summary', 400)->nullable()->comment('摘要'); $pknhs->text('content')->nullable()->comment('内容'); }); } } public function down() { } }