<?php
namespace XF\Cli\Command\Rebuild;
class RebuildAvatars extends AbstractRebuildCommand
{
protected function getRebuildName()
{
return 'avatars';
}
protected function getRebuildDescription()
{
return 'Runs the avatar upgrade step.';
}
protected function getRebuildClass()
{
return 'XF:Upgrade\UserAvatar200';
}
}
INSERT INTO `22x`.`xf_job` (`unique_key`, `execute_class`, `execute_data`, `manual_execute`, `trigger_date`) VALUES ('upgradeUserAvatarRebuild200', 'XF:Upgrade\\\\UserAvatar200', 'a:0:{}', 0, 0);
Honestly, in an ideal world, the solution we'd have recommended would have been to restore a backup and do the upgrade again from scratch.
--resume
flag on the rebuild base CLI command, but at the same time hope I don't have to find out if this is the case )I don't think it would be worth the effort allowing the job to be re-run (which is almost certainly a job we don't want people to be able to run more than once).
FWIW I'd have probably recommended simply just adding the job directly to the xf_job table with a trigger_date of 0 but I don't envisage the approach you took would cause any issues.
xf:upgrade
again and having it resume that job would be nice and probably the least impactful. I tried that initially, but it only prompted to rebuild master data since XF assumed it was fully upgradedxf-dev:upgrade-step 2000010 53
Version2000010::step53()
) inserts a number of other jobs and runs a number of other queries that may not have been ideal.We use essential cookies to make this site work, and optional cookies to enhance your experience.