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