Added performance indexes for echomails/echoareas
This commit is contained in:
parent
3f5668292f
commit
8bf58f3daa
38
database/migrations/2024_04_21_151040_echomail_indexes.php
Normal file
38
database/migrations/2024_04_21_151040_echomail_indexes.php
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
|
||||||
|
return new class extends Migration
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Run the migrations.
|
||||||
|
*/
|
||||||
|
public function up(): void
|
||||||
|
{
|
||||||
|
Schema::table('echomails', function (Blueprint $table) {
|
||||||
|
$table->index(['echoarea_id']);
|
||||||
|
$table->index(['fftn_id']);
|
||||||
|
});
|
||||||
|
|
||||||
|
Schema::table('echoareas', function (Blueprint $table) {
|
||||||
|
$table->index(['domain_id']);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reverse the migrations.
|
||||||
|
*/
|
||||||
|
public function down(): void
|
||||||
|
{
|
||||||
|
Schema::table('echoareas', function (Blueprint $table) {
|
||||||
|
$table->dropIndex(['domain_id']);
|
||||||
|
});
|
||||||
|
|
||||||
|
Schema::table('echomails', function (Blueprint $table) {
|
||||||
|
$table->dropIndex(['echoarea_id']);
|
||||||
|
$table->dropIndex(['fftn_id']);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
Loading…
Reference in New Issue
Block a user