From 2634b52a0fe5e4e6c03c10b558a55930d8f4ab36 Mon Sep 17 00:00:00 2001 From: William Mandai Date: Mon, 5 Feb 2024 18:11:33 +0300 Subject: [PATCH] Update 2018_03_18_071831_create_mpesa_bulk_payment_requests_table.php fix: there is no unique constraint matching given keys for referenced table "mpesa_bulk_payment_requests" --- ...18_03_18_071831_create_mpesa_bulk_payment_requests_table.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database/migrations/2018_03_18_071831_create_mpesa_bulk_payment_requests_table.php b/database/migrations/2018_03_18_071831_create_mpesa_bulk_payment_requests_table.php index ec1cadf..e4aa128 100644 --- a/database/migrations/2018_03_18_071831_create_mpesa_bulk_payment_requests_table.php +++ b/database/migrations/2018_03_18_071831_create_mpesa_bulk_payment_requests_table.php @@ -15,7 +15,7 @@ public function up() { Schema::create('mpesa_bulk_payment_requests', function (Blueprint $table) { $table->increments('id'); - $table->string('conversation_id')->index(); + $table->unique('conversation_id'); $table->string('originator_conversation_id'); $table->decimal('amount', 10, 2); $table->string('phone', 20);