increments('id'); $table->unsignedMediumInteger('torrentid')->default(0); $table->unsignedMediumInteger('userid')->default(0); $table->unique(['torrentid', 'id'], 'torrentid_id'); $table->index(['torrentid', 'userid'], 'torrentid_userid'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('thanks'); } }