FallbackStorageMigration implements UpgradeWizardInterface
Migrates sys_file records of the removed fallback storage (uid 0) into the best-matching configured file storage. Records whose files reside outside all storages are flagged as missing. Processed file records of the fallback storage are removed, they are regenerated on demand.
This class is only meant to be used within EXT:install and is not part of the TYPO3 Core API.
Tags
Attributes
- #[UpgradeWizard]
- 'fallbackStorageMigration'
Table of Contents
Interfaces
- UpgradeWizardInterface
- Interface UpgradeWizardInterface
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?
Methods
__construct()
public
__construct(ConnectionPool $connectionPool, StorageRepository $storageRepository) : mixed
Parameters
- $connectionPool : ConnectionPool
- $storageRepository : StorageRepository
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
Return values
stringgetPrerequisites()
Returns an array of class names of Prerequisite classes
public
getPrerequisites() : string[]
This way a wizard can define dependencies like "database up-to-date" or "reference index updated"
Return values
string[]getTitle()
Return the speaking name of this wizard
public
getTitle() : string
Return values
stringupdateNecessary()
Is an update necessary?
public
updateNecessary() : bool
Is used to determine whether a wizard needs to be run. Check if data for migration exists.