fix: run mimetype repair query across all shards

Signed-off-by: Robin Appelman <robin@icewind.nl>
pull/46639/head
Robin Appelman 1 year ago committed by Louis Chemineau
parent 390f6a78b4
commit 2eaeeeeafe
No known key found for this signature in database
  1. 1
      lib/private/Repair/RepairMimeTypes.php

@ -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))

Loading…
Cancel
Save