From 1e42906a740f1b5e70c411db63171d3ea1037a24 Mon Sep 17 00:00:00 2001
From: Tobias Adolph <mail@tobiasadolph.de>
Date: Tue, 16 Aug 2016 15:14:36 +0200
Subject: [PATCH] [TASK] Migrate easy part of ExtensionManagerTables-Update

Resolves: #77518
Releases: master
Change-Id: I574960e4214dc934bdabb883ce2207162e44214c
Reviewed-on: https://review.typo3.org/49496
Tested-by: Bamboo TYPO3com <info@typo3.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
---
 .../install/Classes/Updates/ExtensionManagerTables.php       | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/typo3/sysext/install/Classes/Updates/ExtensionManagerTables.php b/typo3/sysext/install/Classes/Updates/ExtensionManagerTables.php
index db27c56e9c02..082efd3a0879 100644
--- a/typo3/sysext/install/Classes/Updates/ExtensionManagerTables.php
+++ b/typo3/sysext/install/Classes/Updates/ExtensionManagerTables.php
@@ -14,6 +14,7 @@ namespace TYPO3\CMS\Install\Updates;
  * The TYPO3 project - inspiring people to share!
  */
 
+use TYPO3\CMS\Core\Database\ConnectionPool;
 use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
 use TYPO3\CMS\Core\Utility\GeneralUtility;
 
@@ -80,7 +81,9 @@ class ExtensionManagerTables extends AbstractUpdate
         $updateStatements = $this->getUpdateStatements();
         if (empty($updateStatements)) {
             // Get count of rows in repository database table
-            $count = $this->getDatabaseConnection()->exec_SELECTcountRows('*', 'tx_extensionmanager_domain_model_repository');
+            $count = GeneralUtility::makeInstance(ConnectionPool::class)
+                ->getConnectionForTable('tx_extensionmanager_domain_model_repository')
+                ->count('*', 'tx_extensionmanager_domain_model_repository', []);
             if ($count === 0) {
                 $result = true;
             }
-- 
GitLab