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