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