Skip to content

Commit

Permalink
Task-10
Browse files Browse the repository at this point in the history
  • Loading branch information
FahryIbrahim authored Aug 25, 2024
1 parent 69042fe commit e7a03c7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public function up()
// TASK: edit this migration so country_id would allow NULL values
Schema::create('visitors', function (Blueprint $table) {
$table->id();
$table->foreignId('country_id')->constrained();
$table->foreignId('country_id')->nullable()->constrained();
$table->string('ip_address');
$table->timestamps();
});
Expand Down

0 comments on commit e7a03c7

Please sign in to comment.