fix(migration): tambahkan index pada tabel districts

- Menambahkan index pada kolom 'province_code', 'city_code', dan 'code' di tabel districts.
- Meningkatkan performa query yang melibatkan kolom-kolom tersebut.
This commit is contained in:
Daeng Deni Mardaeni
2025-04-27 12:13:15 +07:00
parent 0be26178ff
commit 00356f2366

View File

@@ -22,6 +22,8 @@ return new class extends Migration
$table->uuid('created_by')->nullable(); $table->uuid('created_by')->nullable();
$table->uuid('updated_by')->nullable(); $table->uuid('updated_by')->nullable();
$table->uuid('deleted_by')->nullable(); $table->uuid('deleted_by')->nullable();
$table->index(['province_code', 'city_code','code']);
}); });
} }