DatabaseUpgradeWizardsService

Service class executing database tasks for upgrade wizards

Internal

This class is only meant to be used within EXT:install and is not part of the TYPO3 Core API.

Table of Contents

Methods

__construct()  : mixed
addMissingTablesAndFields()  : array<string, string>
Add missing tables, indexes and fields to DB.
getBlockingDatabaseAdds()  : array{tables?: list, columns?: list, indexes?: list}
Get a list of tables, single columns and indexes to add.
isDatabaseCharsetUtf8()  : bool
True if DB main charset on mysql is utf8
setDatabaseCharsetUtf8()  : mixed
Set default connection MySQL database charset to utf8.

Methods

addMissingTablesAndFields()

Add missing tables, indexes and fields to DB.

public addMissingTablesAndFields() : array<string, string>
Return values
array<string, string>

Every sql statement as key with empty string or error message as value

getBlockingDatabaseAdds()

Get a list of tables, single columns and indexes to add.

public getBlockingDatabaseAdds() : array{tables?: list, columns?: list, indexes?: list}
Return values
array{tables?: list, columns?: list, indexes?: list}

isDatabaseCharsetUtf8()

True if DB main charset on mysql is utf8

public isDatabaseCharsetUtf8() : bool
Return values
bool

True if charset is ok

setDatabaseCharsetUtf8()

Set default connection MySQL database charset to utf8.

public setDatabaseCharsetUtf8() : mixed

Should be called only if default database connection is actually MySQL


        
On this page

Search results