mirror of
https://github.com/nextcloud/server.git
synced 2026-05-19 08:25:56 -04:00
don´t change folders with --repair-filecache
check if folder is "httpd/unix-directory" and don´t perform here #27585
This commit is contained in:
parent
494ccee0f1
commit
ff41ee40bf
1 changed files with 4 additions and 0 deletions
|
|
@ -159,12 +159,16 @@ class Loader implements IMimeTypeLoader {
|
|||
* @return int number of changed rows
|
||||
*/
|
||||
public function updateFilecache($ext, $mimetypeId) {
|
||||
$is_folderId = $this->getId('httpd/unix-directory');
|
||||
$update = $this->dbConnection->getQueryBuilder();
|
||||
$update->update('filecache')
|
||||
->set('mimetype', $update->createNamedParameter($mimetypeId))
|
||||
->where($update->expr()->neq(
|
||||
'mimetype', $update->createNamedParameter($mimetypeId)
|
||||
))
|
||||
->andwhere($update->expr()->neq(
|
||||
'mimetype', $update->createNamedParameter($is_folderId)
|
||||
))
|
||||
->andWhere($update->expr()->like(
|
||||
$update->createFunction('LOWER(`name`)'), $update->createNamedParameter($ext)
|
||||
));
|
||||
|
|
|
|||
Loading…
Reference in a new issue