diff --git a/database/migrations/2020_04_30_155044_create_twitch_webhook_events_table.php b/database/migrations/2020_04_30_155044_create_twitch_webhook_events_table.php index 5cf0f3f..446d09b 100644 --- a/database/migrations/2020_04_30_155044_create_twitch_webhook_events_table.php +++ b/database/migrations/2020_04_30_155044_create_twitch_webhook_events_table.php @@ -18,7 +18,7 @@ class CreateTwitchWebhookEventsTable extends Migration $table->foreignId("twitch_webhook_id")->references("id")->on("twitch_webhooks")->onUpdate("cascade")->onDelete("cascade"); $table->unsignedBigInteger("twitch_webhook_event_id"); $table->string("twitch_webhook_event_type"); - $table->unique(["twitch_webhook_id", "twitch_webhook_event_type"]); + $table->unique(["twitch_webhook_id", "twitch_webhook_event_type"], "webhook_event"); $table->timestamps(); }); }