<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateMemberUploadCategory extends Migration { public function up() { if (!\ModStart\Core\Dao\ModelManageUtil::hasTable('member_upload_category')) { Schema::create('member_upload_category', function (Blueprint $tM63P) { $tM63P->increments('id'); $tM63P->timestamps(); $tM63P->integer('userId')->nullable()->comment('用户ID'); $tM63P->string('category', 10)->nullable()->comment('大类'); $tM63P->integer('pid')->nullable()->comment('上级分类'); $tM63P->integer('sort')->nullable()->comment('排序'); $tM63P->string('title', 50)->nullable()->comment('名称'); $tM63P->index(array('userId')); }); } } public function down() { } }