// @codeCoverageIgnoreEnd
} $runner = Services::
migrations();
$group =
$params['g'
] ?? CLI::
getOption('g'
);
if (is_string($group)) { $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);
}