summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib/Command/CleanupRemoteStorages.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_sharing/lib/Command/CleanupRemoteStorages.php')
-rw-r--r--apps/files_sharing/lib/Command/CleanupRemoteStorages.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/lib/Command/CleanupRemoteStorages.php b/apps/files_sharing/lib/Command/CleanupRemoteStorages.php
index 2175982dfc1..a4e5f50b9b2 100644
--- a/apps/files_sharing/lib/Command/CleanupRemoteStorages.php
+++ b/apps/files_sharing/lib/Command/CleanupRemoteStorages.php
@@ -98,7 +98,7 @@ class CleanupRemoteStorages extends Command {
public function countFiles($numericId, OutputInterface $output) {
$queryBuilder = $this->connection->getQueryBuilder();
- $queryBuilder->select($queryBuilder->createFunction('COUNT(' . $queryBuilder->getColumnName('fileid') . ')'))
+ $queryBuilder->select($queryBuilder->func()->count('fileid'))
->from('filecache')
->where($queryBuilder->expr()->eq(
'storage',