<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateMemberOauth extends Migration { public function up() { Schema::create('member_oauth', function (Blueprint $onV5E) { $onV5E->increments('id'); $onV5E->timestamps(); $onV5E->integer('memberUserId')->comment('用户ID')->nullable(); $onV5E->string('type', 30)->comment('类型')->nullable(); $onV5E->string('openId', 150)->comment('OpenId')->nullable(); $onV5E->unique(array('type', 'openId')); $onV5E->index(array('memberUserId')); }); } public function down() { } }