fix(migration): tambahkan index pada tabel villages

- Menambahkan index pada kolom province_code, city_code, district_code, dan code.
- Meningkatkan performa query yang melibatkan kolom-kolom tersebut.
This commit is contained in:
Daeng Deni Mardaeni
2025-04-27 12:13:20 +07:00
parent 00356f2366
commit d74dbb37a7

View File

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