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