enum('type', ['ITEM', 'CHARACTER'])->default('ITEM'); $table->dateTime('time')->useCurrent(); $table->unsignedInteger('who')->default(0)->index('who_idx'); $table->unsignedInteger('x')->default(0); $table->unsignedInteger('y')->default(0); $table->integer('what')->default(0)->index('what_idx'); $table->string('how', 50)->default('')->index('how_idx'); $table->string('hint', 70)->nullable(); $table->string('ip', 20)->nullable(); $table->integer('vnum')->nullable(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('log'); } };