DatabaseUpgradeWizardsService

readonly class \TYPO3\CMS\Core\Service\DatabaseUpgradeWizardsService

Service class executing database tasks for upgrade wizards

Table of Contents

Methods

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(ContainerInterface $container) : array<string, string>

Parameters

$container : ContainerInterface

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(ContainerInterface $container) : array{tables?: list, columns?: list, indexes?: list}

Parameters

$container : ContainerInterface

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