fix: run mimetype repair query across all shards

Signed-off-by: Robin Appelman <robin@icewind.nl>
pull/47561/head
Robin Appelman 2024-07-19 19:30:53 +07:00 committed by Louis
parent 693ee5ea0f
commit 0e40fa4fa5
1 changed files with 1 additions and 0 deletions

@ -58,6 +58,7 @@ class RepairMimeTypes implements IRepairStep {
$update = $this->connection->getQueryBuilder();
$update->update('filecache')
->runAcrossAllShards()
->set('mimetype', $update->createParameter('mimetype'))
->where($update->expr()->neq('mimetype', $update->createParameter('mimetype'), IQueryBuilder::PARAM_INT))
->andWhere($update->expr()->neq('mimetype', $update->createParameter('folder'), IQueryBuilder::PARAM_INT))