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