Skip to content
Snippets Groups Projects
Commit 1e42906a authored by Tobias Adolph's avatar Tobias Adolph Committed by Christian Kuhn
Browse files

[TASK] Migrate easy part of ExtensionManagerTables-Update

Resolves: #77518
Releases: master
Change-Id: I574960e4214dc934bdabb883ce2207162e44214c
Reviewed-on: https://review.typo3.org/49496


Tested-by: default avatarBamboo TYPO3com <info@typo3.com>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
parent 2eeab7a5
Branches
Tags
No related merge requests found
......@@ -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;
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment