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();