mirror of
https://github.com/nextcloud/server.git
synced 2026-02-21 17:01:34 -05:00
fix: run mimetype repair query across all shards
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
390f6a78b4
commit
2eaeeeeafe
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))
|
||||
|
|
|
|||
Loading…
Reference in a new issue