From b0e16235fa3f3d964bd6f2b8e8c3a87bf75a96ee Mon Sep 17 00:00:00 2001 From: "R. Aravindan" Date: Tue, 14 May 2024 18:12:32 +0530 Subject: [PATCH] added nullable on question option id --- database/migrations/create_consentable_responses_table.php.stub | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database/migrations/create_consentable_responses_table.php.stub b/database/migrations/create_consentable_responses_table.php.stub index 43a264f..7ce5cd8 100644 --- a/database/migrations/create_consentable_responses_table.php.stub +++ b/database/migrations/create_consentable_responses_table.php.stub @@ -18,7 +18,7 @@ return new class extends Migration $table->foreignId('consentable_id'); //`consentables` table primary key $table->foreignId('consent_option_id'); $table->foreignId('consent_option_question_id'); - $table->foreignId('consent_option_question_option_id'); + $table->foreignId('consent_option_question_option_id')->nullable(); $table->string('question_field_name')->nullable(); $table->string('response')->nullable(); $table->string('additional_info')->nullable();