<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; class CreateTrackingCodeQuery extends Migration { public function up() { Schema::create('tracking_code_query', function (Blueprint $TNrxH) { $TNrxH->increments('id'); $TNrxH->timestamps(); $TNrxH->integer('codeId')->nullable()->comment(''); $TNrxH->string('ua', 50)->nullable()->comment(''); $TNrxH->string('ip', 20)->nullable()->comment(''); $TNrxH->index(array('codeId')); }); } public function down() { } }