Skip to content
This repository was archived by the owner on Aug 15, 2023. It is now read-only.

Commit 6a76175

Browse files
committed
Merge pull request #4 from helhum/database_api_improvements
Database api improvements
2 parents eed1fb8 + 5c96b4d commit 6a76175

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

Classes/Service/DatabaseApiService.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,14 @@ public function databaseCompare($actions) {
8686
}
8787
}
8888

89+
if (is_callable('t3lib_cache::getDatabaseTableDefinitions')) {
90+
$tblFileContent .= t3lib_cache::getDatabaseTableDefinitions();
91+
}
92+
93+
if (class_exists('TYPO3\\CMS\\Core\\Category\\CategoryRegistry')) {
94+
$tblFileContent .= \TYPO3\CMS\Core\Category\CategoryRegistry::getInstance()->getDatabaseTableDefinitions();
95+
}
96+
8997
if ($tblFileContent) {
9098
$fileContent = implode(LF, $this->sqlHandler->getStatementArray($tblFileContent, 1, '^CREATE TABLE '));
9199
$FDfile = $this->sqlHandler->getFieldDefinitions_fileContent($fileContent);
@@ -180,7 +188,7 @@ protected function getRequestKeys(array $update, array $remove) {
180188
}
181189

182190
foreach ($removeActions as $removeAction) {
183-
if (isset($remove[$removeAction]) && is_array($update[$removeAction])) {
191+
if (isset($remove[$removeAction]) && is_array($remove[$removeAction])) {
184192
$tmpKeys += array_keys($remove[$removeAction]);
185193
}
186194
}

0 commit comments

Comments
 (0)