<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreatePhotoCategory extends Migration { public function up() { Schema::create('photo_category', function (Blueprint $K4MEV) { $K4MEV->increments('id'); $K4MEV->timestamps(); $K4MEV->integer('pid')->comment('父ID')->nullable(); $K4MEV->integer('sort')->comment('排序，越小越靠前')->nullable(); $K4MEV->string('name', 20)->nullable()->comment(''); $K4MEV->string('cover', 200)->nullable()->comment(''); $K4MEV->integer('photoCount')->nullable()->comment(''); $K4MEV->tinyInteger('visitType')->nullable()->comment(''); $K4MEV->string('visitPass', 20)->nullable()->comment(''); $K4MEV->tinyInteger('type')->nullable()->comment(''); $K4MEV->string('videoUrl', 200)->nullable()->comment(''); }); } public function down() { } }