diff --git a/database/migrations/2018_04_06_081112_unique_beatmapset_discussion_votes.php b/database/migrations/2018_04_06_081112_unique_beatmapset_discussion_votes.php new file mode 100644 index 00000000000..c72cb86dfcd --- /dev/null +++ b/database/migrations/2018_04_06_081112_unique_beatmapset_discussion_votes.php @@ -0,0 +1,31 @@ +unique(['beatmap_discussion_id', 'user_id']); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('beatmap_discussion_votes', function ($table) { + $table->dropUnique('beatmap_discussion_votes_beatmap_discussion_id_user_id_unique'); + }); + } +}