Skip to content

Commit

Permalink
Update 2021_04_15_070732_achievements_progress.php
Browse files Browse the repository at this point in the history
index fix
  • Loading branch information
iooe committed Apr 18, 2021
1 parent 54bf7a1 commit a9308a6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public function up()
$table->integer('points')->default(0);
$table->dateTime('unlocked_at')->nullable();
$table->timestamps();
$table->index(['user_id', 'achievement_id']);
$table->unique(['user_id', 'achievement_id']);
});
}

Expand Down

0 comments on commit a9308a6

Please sign in to comment.