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