Skip to content

Commit

Permalink
T10 2021_11_09_090858_create_visitors_table.php
Browse files Browse the repository at this point in the history
  • Loading branch information
imtyaz-17 authored Jul 3, 2024
1 parent 76ccef7 commit f00ca08
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 f00ca08

Please sign in to comment.