<?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 $gCb7f) { $gCb7f->increments('id'); $gCb7f->timestamps(); $gCb7f->string('key', 50)->nullable()->comment(''); $gCb7f->string('param', 100)->nullable()->comment(''); $gCb7f->integer('expire')->nullable()->comment(''); $gCb7f->integer('lifeExpire')->nullable()->comment(''); $gCb7f->integer('cacheSeconds')->nullable()->comment(''); $gCb7f->text('value')->nullable()->comment(''); $gCb7f->unique(array('key', 'param')); $gCb7f->index(array('expire')); $gCb7f->index(array('lifeExpire')); }); } public function down() { } }