We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3114397 commit 83b7fa8Copy full SHA for 83b7fa8
1 file changed
database/migrations/2025_01_31_075158_create_locations_table.php
@@ -3,6 +3,7 @@
3
use Illuminate\Database\Migrations\Migration;
4
use Illuminate\Database\Schema\Blueprint;
5
use Illuminate\Support\Facades\Schema;
6
+use \Illuminate\Support\Facades\DB;
7
8
return new class extends Migration {
9
@@ -31,8 +32,8 @@ public function up(): void
31
32
});
33
34
// Add spatial columns
- \Illuminate\Support\Facades\DB::statement("ALTER TABLE $this->tableName ADD COLUMN center POINT NULL after is_capital");
35
- \Illuminate\Support\Facades\DB::statement("ALTER TABLE $this->tableName ADD COLUMN area MULTIPOLYGON NULL after center");
+ DB::statement("ALTER TABLE $this->tableName ADD COLUMN center POINT NULL after is_capital");
36
+ DB::statement("ALTER TABLE $this->tableName ADD COLUMN area MULTIPOLYGON NULL after center");
37
}
38
39
/**
0 commit comments