Skip to content

Commit

Permalink
added migration for L10
Browse files Browse the repository at this point in the history
  • Loading branch information
jobverplanke committed Jul 24, 2024
1 parent af26cbd commit f62b5dd
Showing 1 changed file with 34 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateTestExtendedPlacesTable extends Migration
{
public function up(): void
{
Schema::create('test_extended_places', function (Blueprint $table): void {
$table->id();
$table->timestamps();
$table->string('name');
$table->string('address');
$table->point('point')->isGeometry()->nullable();
$table->multiPoint('multi_point')->isGeometry()->nullable();
$table->lineString('line_string')->isGeometry()->nullable();
$table->multiLineString('multi_line_string')->isGeometry()->nullable();
$table->polygon('polygon')->isGeometry()->nullable();
$table->multiPolygon('multi_polygon')->isGeometry()->nullable();
$table->geometryCollection('geometry_collection')->isGeometry()->nullable();
$table->point('point_with_line_string_cast')->isGeometry()->nullable();
$table->point('point_geography')->nullable();
$table->decimal('longitude')->nullable();
$table->decimal('latitude')->nullable();
});
}

public function down(): void
{
Schema::dropIfExists('test_extended_places');
}
}

0 comments on commit f62b5dd

Please sign in to comment.