public function syncJobStructure(): void
{
$sm = $this->db()->getSchemaManager();
if (!$sm->tableExists('xf_job'))
{
return;
}
$sm->alterTable('xf_job', function (Alter $table) use ($sm)
{
if (!$sm->columnExists('xf_job', 'attempts'))
{
$table->addColumn('attempts', 'tinyint', 3)->setDefault(0);
}
if (!$sm->columnExists('xf_job', 'priority'))...