27 protected $title =
'Add the default Extension Manager database tables';
38 if ($this->installToolSqlParser === NULL) {
51 $updateStatements = array();
56 if (count($fieldDefinitionsFromFile)) {
58 $diff = $this->
getInstallToolSqlParser()->getDatabaseExtra($fieldDefinitionsFromFile, $fieldDefinitionsFromCurrentDatabase);
62 return $updateStatements;
73 $description =
'Creates necessary database tables and adds static tables for the new Extension Manager.';
77 if (empty($updateStatements)) {
79 $databaseTables =
$GLOBALS[
'TYPO3_DB']->admin_get_tables();
80 if (!isset($databaseTables[
'tx_extensionmanager_domain_model_repository'])) {
84 $count =
$GLOBALS[
'TYPO3_DB']->exec_SELECTcountRows(
'*',
'tx_extensionmanager_domain_model_repository');
103 if (
$GLOBALS[
'TYPO3_DB']->sql_error()) {
104 $customMessages .=
'<br /><br />SQL-ERROR: ' . htmlspecialchars(
$GLOBALS[
'TYPO3_DB']->sql_error());
123 foreach ((array) $updateStatements[
'add'] as $string) {
124 $GLOBALS[
'TYPO3_DB']->admin_query($string);
125 $dbQueries[] = $string;
128 foreach ((array) $updateStatements[
'change'] as $string) {
129 $GLOBALS[
'TYPO3_DB']->admin_query($string);
130 $dbQueries[] = $string;
133 foreach ((array) $updateStatements[
'create_table'] as $string) {
134 $GLOBALS[
'TYPO3_DB']->admin_query($string);
135 $dbQueries[] = $string;
142 foreach ($statements as $statement) {
143 if (trim($statement) !==
'') {
144 $GLOBALS[
'TYPO3_DB']->admin_query($statement);
145 $dbQueries[] = $statement;
hasError(&$customMessages)
checkForUpdate(&$description)
static extPath($key, $script='')
static makeInstance($className)
if($list_of_literals) if(!empty($literals)) if(!empty($literals)) $result
Analyse literals to prepend the N char to them if their contents aren't numeric.
static getUrl($url, $includeHeader=0, $requestHeaders=FALSE, &$report=NULL)
getInstallToolSqlParser()
if(!defined('TYPO3_MODE')) $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['logoff_pre_processing'][]
performUpdate(array &$dbQueries, &$customMessages)