Changed index name, was too long
This commit is contained in:
@@ -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();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user