$runner->
setGroup($group);
} try { $batch =
$params['b'
] ?? CLI::
getOption('b'
) ??
$runner->
getLastBatch() - 1;
CLI::
write(lang('Migrations.rollingBack'
) . ' ' .
$batch, 'yellow'
);
if (!
$runner->
regress($batch)) { CLI::
error(lang('Migrations.generalFault'
), 'light_gray', 'red'
); // @codeCoverageIgnore
} $messages =
$runner->
getCliMessages();
foreach ($messages as $message) { CLI::
write($message);
} CLI::
write('Done rolling back migrations.', 'green'
);
// @codeCoverageIgnoreStart
} catch (Throwable
$e) { $this->
showError($e);
// @codeCoverageIgnoreEnd