perf(database): add indexes for timestamps and JSON brand code in migrations

This commit is contained in:
Jérémy Munsch 2026-08-14 16:16:13 +02:00
parent bfe0b0010c
commit 78680d06bc
Signed by: forge-joniko
GPG key ID: D7EFE2F5CB6CC0E4
2 changed files with 5 additions and 0 deletions

View file

@ -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');
});
}

View file

@ -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');
});
}