perf(database): add indexes for timestamps and JSON brand code in migrations
This commit is contained in:
parent
bfe0b0010c
commit
78680d06bc
2 changed files with 5 additions and 0 deletions
|
|
@ -33,6 +33,8 @@ return new class () extends Migration
|
|||
$table->index('site');
|
||||
$table->index('service');
|
||||
$table->index('establishment');
|
||||
$table->index('created_at');
|
||||
$table->index('updated_at');
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -42,6 +42,9 @@ return new class () extends Migration
|
|||
|
||||
$table->index('name');
|
||||
$table->index('compo_id');
|
||||
$table->index('created_at');
|
||||
$table->index('updated_at');
|
||||
$table->index('brand->code');
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue