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