35 return 'extensionManagerTables';
43 return 'Add the default Extension Manager database tables';
51 return 'Creates necessary database tables and adds static data for the Extension Manager.';
64 if (count($updateStatements) === 0) {
66 $count = GeneralUtility::makeInstance(ConnectionPool::class)
67 ->getConnectionForTable(
'tx_extensionmanager_domain_model_repository')
68 ->count(
'*',
'tx_extensionmanager_domain_model_repository', []);
85 DatabaseUpdatedPrerequisite::class
98 $sqlReader = GeneralUtility::makeInstance(SqlReader::class);
102 $schemaMigrationService = GeneralUtility::makeInstance(SchemaMigrator::class);
103 $schemaMigrationService->install($createTableStatements);
106 $rawDefinitions = file_get_contents(
110 $insertStatements = $sqlReader->getInsertStatementArray($rawDefinitions);
111 $schemaMigrationService->importStaticData($insertStatements);
123 $updateStatements = [];
125 if (count($emTableStatements)) {
126 $schemaMigrationService = GeneralUtility::makeInstance(SchemaMigrator::class);
127 $updateSuggestions = $schemaMigrationService->getUpdateSuggestions($emTableStatements);
128 $updateStatements = array_merge_recursive(...array_values($updateSuggestions));
130 return $updateStatements;
141 $sqlReader = GeneralUtility::makeInstance(SqlReader::class);
142 return $sqlReader->getCreateTableStatementArray($rawDefinitions);