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