1
0

Changed index name, was too long

This commit is contained in:
2020-05-18 23:27:58 +02:00
parent 1f450d089e
commit 38a8869ec5

View File

@@ -18,7 +18,7 @@ class CreateTwitchWebhookEventsTable extends Migration
$table->foreignId("twitch_webhook_id")->references("id")->on("twitch_webhooks")->onUpdate("cascade")->onDelete("cascade"); $table->foreignId("twitch_webhook_id")->references("id")->on("twitch_webhooks")->onUpdate("cascade")->onDelete("cascade");
$table->unsignedBigInteger("twitch_webhook_event_id"); $table->unsignedBigInteger("twitch_webhook_event_id");
$table->string("twitch_webhook_event_type"); $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(); $table->timestamps();
}); });
} }