MediaFieldsZeroToNullUpdateWizard

readonly class \TYPO3\CMS\Frontend\Upgrades\MediaFieldsZeroToNullUpdateWizard

Implements
UpgradeWizardInterface, RepeatableInterface

Update fields imagewidth & imageheight to NULL if their value is 0

Tags

since
14.0

Attributes

#[UpgradeWizard]
'mediaFieldsZeroToNullUpdateWizard'

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()  : 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?
getCountOfRowsWhichNeedUpdate()  : int

Methods

executeUpdate()

Execute the update

public executeUpdate() : bool

Called when a wizard reports that an update is necessary

Return values

bool

getDescription()

Return the description for this wizard

public getDescription() : string

Return values

string

getPrerequisites()

Returns an array of class names of Prerequisite classes

public getPrerequisites() : string[]

Return values

string[] —

All new fields and tables must exist

getTitle()

Return the speaking name of this wizard

public getTitle() : string

Return values

string

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

bool

getCountOfRowsWhichNeedUpdate()

protected getCountOfRowsWhichNeedUpdate() : int

Return values

int
On this page