unsignedInteger('dwPID')->nullable(); $table->string('szName', 32)->index('name_idx'); $table->string('szState', 64)->default('')->index('state_idx'); $table->integer('lValue')->default(0); $table->index(['dwPID', 'szName', 'szState']); $table->foreign('dwPID')->references('id')->on('player'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('quest'); } };