<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; class CreateEdmEmail extends Migration { public function up() { Schema::create('edm_email', function (Blueprint $gCb7f) { $gCb7f->increments('id'); $gCb7f->timestamps(); $gCb7f->string('tags', 200)->nullable()->comment(''); $gCb7f->string('name', 100)->nullable()->comment(''); $gCb7f->string('email', 200)->nullable()->comment(''); $gCb7f->dateTime('lastSendTime')->nullable()->comment(''); $gCb7f->unique(array('email')); $gCb7f->index(array('lastSendTime')); }); } public function down() { } }