NullToDefaultUpdateWizard implements UpgradeWizardInterface, RepeatableInterface
Update current "NULL" fields to their desired DEFAULT value if new database schema (TCA) defines a "NOT NULL" assertion (nullable=false).
This class is only meant to be used within EXT:install and is not part of the TYPO3 Core API.
Tags
Attributes
- #[UpgradeWizard]
- 'nullToDefaultUpdateWizard'
Table of Contents
Interfaces
- UpgradeWizardInterface
- Interface UpgradeWizardInterface
- RepeatableInterface
- Use if wizard may be run multiple times (and should not be disabled after one run)
Methods
- __construct() : mixed
- executeUpdate() : bool
- Execute the update
- getDescription() : string
- Return the description for this wizard
- getPrerequisites() : array<string|int, string>
- Returns an array of class names of Prerequisite classes
- getTitle() : string
- Return the speaking name of this wizard
- updateNecessary() : bool
- Is an update necessary?
- getNullFieldsThatNeedUpdate() : array<int, TableDiff, count: int}>
Methods
__construct()
public
__construct(SchemaMigrator $schemaMigrator, ConnectionPool $connectionPool) : mixed
Parameters
- $schemaMigrator : SchemaMigrator
- $connectionPool : ConnectionPool
executeUpdate()
Execute the update
public
executeUpdate() : bool
Called when a wizard reports that an update is necessary
Return values
boolgetDescription()
Return the description for this wizard
public
getDescription() : string
Tags
Return values
string —Longer description of this updater
getPrerequisites()
Returns an array of class names of Prerequisite classes
public
getPrerequisites() : array<string|int, string>
Return values
array<string|int, string> —All new fields and tables must exist
getTitle()
Return the speaking name of this wizard
public
getTitle() : string
Return values
string —Title of this updater
updateNecessary()
Is an update necessary?
public
updateNecessary() : bool
Is used to determine whether a wizard needs to be run. Check if data for migration exists.
Return values
boolgetNullFieldsThatNeedUpdate()
protected
getNullFieldsThatNeedUpdate() : array<int, TableDiff, count: int}>