<?php
 use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateJob extends Migration { public function up() { if(!\ModStart\Core\Dao\ModelManageUtil::hasTable('job')){ Schema::create('job', function (Blueprint $table) { $table->increments('id'); $table->timestamps(); $table->string('title', 200)->nullable()->comment('名称'); $table->text('content')->nullable()->comment('内容'); }); } } public function down() { } } 