[TASK] Migrate easy part of ExtensionManagerTables-Update 96/49496/2
authorTobias Adolph <mail@tobiasadolph.de>
Tue, 16 Aug 2016 13:14:36 +0000 (15:14 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Tue, 16 Aug 2016 13:20:09 +0000 (15:20 +0200)
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>
typo3/sysext/install/Classes/Updates/ExtensionManagerTables.php

index db27c56..082efd3 100644 (file)
@@ -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;
             }