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