<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateLazyValue extends Migration { public function up() { Schema::create('lazy_value', function (Blueprint $onV5E) { $onV5E->increments('id'); $onV5E->timestamps(); $onV5E->string('key', 50)->nullable()->comment(''); $onV5E->string('param', 100)->nullable()->comment(''); $onV5E->integer('expire')->nullable()->comment(''); $onV5E->integer('lifeExpire')->nullable()->comment(''); $onV5E->integer('cacheSeconds')->nullable()->comment(''); $onV5E->text('value')->nullable()->comment(''); $onV5E->unique(array('key', 'param')); $onV5E->index(array('expire')); $onV5E->index(array('lifeExpire')); }); } public function down() { } }