<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateMemberUpload extends Migration { public function up() { if (!\ModStart\Core\Dao\ModelManageUtil::hasTable('member_upload')) { Schema::create('member_upload', function (Blueprint $tM63P) { $tM63P->increments('id'); $tM63P->timestamps(); $tM63P->unsignedInteger('userId')->nullable()->comment('用户ID'); $tM63P->string('category', 10)->nullable()->comment('大类'); $tM63P->unsignedInteger('dataId')->nullable()->comment('文件ID'); $tM63P->integer('uploadCategoryId')->nullable()->comment('分类ID'); $tM63P->index(array('userId', 'uploadCategoryId')); $tM63P->index(array('dataId')); }); } } public function down() { } }