<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; class PicUploaderMemberCreate extends Migration { public function up() { Schema::create('pic_uploader_member', function (Blueprint $hTN3M) { $hTN3M->increments('id'); $hTN3M->timestamps(); $hTN3M->tinyInteger('uploadTokenEnable')->nullable()->comment(''); $hTN3M->string('uploadToken', 32)->nullable()->comment(''); $hTN3M->unique(array('uploadToken')); }); } public function down() { } }