Skip to content

Commit 83b7fa8

Browse files
committed
fix(DB): add use statement
1 parent 3114397 commit 83b7fa8

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

database/migrations/2025_01_31_075158_create_locations_table.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
use Illuminate\Database\Migrations\Migration;
44
use Illuminate\Database\Schema\Blueprint;
55
use Illuminate\Support\Facades\Schema;
6+
use \Illuminate\Support\Facades\DB;
67

78
return new class extends Migration {
89

@@ -31,8 +32,8 @@ public function up(): void
3132
});
3233

3334
// Add spatial columns
34-
\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");
35+
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");
3637
}
3738

3839
/**

0 commit comments

Comments
 (0)