WorkspaceVersionRecordsMigration

class \TYPO3\CMS\Install\Updates\RowUpdater\WorkspaceVersionRecordsMigration

Implements
RowUpdaterInterface, LoggerAwareInterface
Uses
LoggerAwareTrait

Migrate all records that have "pid=-1" to their proper equivalents.

t3_wsid=0 AND pid=-1 ---> discarded records or archived records. Since we have no connection to the original anymore, we remove them (hard delete) t3_wsid>0 AND pid=-1 AND t3ver_oid>0 -> find the live version and take the PID from the live version, and replace the PID Since the move pointer (t3ver_state=3) is not affected, as it contains the future live PID, there is no need to touch these records.

Table of Contents

Interfaces

RowUpdaterInterface
Interface each single row updater must implement.
LoggerAwareInterface

Methods

getTitle()  : string
Get a description of this single row updater
hasPotentialUpdateForTable()  : bool
Return true if this row updater may have updates for given table rows.
updateTableRow()  : array
Update "pid" field or delete record completely
fetchPageId()  : array|null

Methods

getTitle()

Get a description of this single row updater

public getTitle() : string

Return values

string

hasPotentialUpdateForTable()

Return true if this row updater may have updates for given table rows.

public hasPotentialUpdateForTable(string $tableName) : bool

Parameters

$tableName : string

Table name to check

Return values

bool —

Return true if a table has workspace enabled

updateTableRow()

Update "pid" field or delete record completely

public updateTableRow(string $tableName, array $row) : array

Parameters

$tableName : string

Table name

$row : array

Given row data

Return values

array —

Modified row data

fetchPageId()

protected fetchPageId(string $tableName, int $id) : array|null

Parameters

$tableName : string
$id : int

Return values

array|null
On this page