-
Using Laravel's built-in types, I am able to do this in a migration: public function up()
{
Schema::create('timezones', function (Blueprint $table) {
$table->id('gid');
$table->string('tzid', 80);
$table->multiPolygon('geom');
});
DB::statement('CREATE INDEX timezones_geom ON timezones USING GIST (geom);');
} I switched to this library because Laravel's public function up()
{
Schema::create('timezones', function (Blueprint $table) {
$table->id('gid');
$table->string('tzid', 80);
$table->magellanMultiPolygon('geom');
});
DB::statement('CREATE INDEX timezones_geom ON timezones USING GIST (geom);');
} This gives me an error when I run the migrations:
Is this because |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
I see that |
Beta Was this translation helpful? Give feedback.
-
It turns out this problem occurs if a project has BOTH magellan and mstaack/laravel-postgis installed. Uninstalling either one of them makes the migration work properly. |
Beta Was this translation helpful? Give feedback.
It turns out this problem occurs if a project has BOTH magellan and mstaack/laravel-postgis installed. Uninstalling either one of them makes the migration work properly.