XF\Install\Upgrade\Version2030055::step2()
takes roughly 30 minutes for 1.2 million attachment_data rows. Can't this step be simplified as follows?Diff:
Код:
--- a/src/XF/Install/Upgrade/2030055-230rc5.php
+++ b/src/XF/Install/Upgrade/2030055-230rc5.php
@@ -20,44 +20,12 @@ class Version2030055 extends AbstractUpgrade
});
}
- public function step2(int $position, array $stepData)
+ public function step2(): void
{
- if (!isset($stepData['max']))
- {
- $stepData['max'] =...
Read more
Читать далее...