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:
@@ -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']);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user