* Migrate template db entries to the correct root pages
*/
classMigrateDataextendsAbstractUpdate{
classUpdatePidToSiteRootextendsAbstractUpdate{
/**
* @var string
*/
protected$title='Find all templates & queue entries without site root and assign the correct site root id';
protected$title='Find all templates & queue entries with site root and assign the correct site root id as pid. Also check if the pids are actually site roots and update them accordingly';
/**
* @var \TYPO3\CMS\Extbase\Object\ObjectManager
...
...
@@ -57,70 +58,61 @@ class MigrateData extends AbstractUpdate {
* @return bool Whether an update is required (TRUE) or not (FALSE)
*/
publicfunctioncheckForUpdate(&$description){
$description='Set the site_root_id for all the queue entries and templates if not set or pid = 0';
$oldRowsFound=FALSE;
$description='Move site root ids to pid & update pids to their correspondent site root ids';