<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateMemberVip extends Migration { public function up() { Schema::table('member_user', function (Blueprint $onV5E) { $onV5E->integer('vipId')->nullable()->comment(''); $onV5E->date('vipExpire')->nullable()->comment(''); }); Schema::create('member_vip_set', function (Blueprint $onV5E) { $onV5E->increments('id'); $onV5E->timestamps(); $onV5E->string('title', 50)->nullable()->comment('名称'); $onV5E->string('flag', 50)->nullable()->comment('标识'); $onV5E->integer('pid')->nullable()->comment('排序'); $onV5E->integer('sort')->nullable()->comment('排序'); $onV5E->tinyInteger('isDefault')->nullable()->comment('默认'); $onV5E->string('icon', 100)->nullable()->comment('图标'); $onV5E->decimal('price', 20, 2)->nullable()->comment(''); $onV5E->integer('vipDays')->nullable()->comment(''); $onV5E->text('content')->nullable()->comment('说明'); }); } public function down() { } }