Skip to content

Commit f4786d6

Browse files
committed
Change 'location' column type from point to geography in addresses table migration
1 parent ffe18b9 commit f4786d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/database/migrations/0000_00_00_000000_create_addresses_table.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public function up(): void
1010
{
1111
Schema::create('addresses', function (Blueprint $table) {
1212
$table->id();
13-
$table->point('location')->nullable();
13+
$table->geography('location', subtype: 'point')->nullable();
1414
$table->timestamps();
1515
});
1616
}

0 commit comments

Comments
 (0)