Skip to content

Commit

Permalink
[TM-1523] add index to sitepolygon
Browse files Browse the repository at this point in the history
  • Loading branch information
egrojMonroy committed Nov 28, 2024
1 parent e32f910 commit 57e8189
Showing 1 changed file with 22 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?php

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

return new class extends Migration
{
public function up(): void
{
Schema::table('site_polygon', function (Blueprint $table) {
$table->index('poly_id', 'idx_site_polygon_poly_id');
});
}

public function down(): void
{
Schema::table('site_polygon', function (Blueprint $table) {
$table->dropIndex('idx_site_polygon_poly_id');
});
}
};

0 comments on commit 57e8189

Please sign in to comment.