onCommittingFinished method
Occurs when the migration process completes with the specified number
of
successful migrations out of the total
number of migrations to be
committed.
Implementation
@override
void onCommittingFinished(final int number, final int total)
{
if (total <= 0) {
infoCLn('Nothing to commit ✔');
} else if (number < total) {
if (number == 1) {
infoCLn('1 / $total migration has been committed ✖');
} else {
infoCLn('$number / $total migrations have been committed ✖');
}
} else {
if (number == 1) {
infoCLn('1 / $total migration has been committed ✔');
} else {
infoCLn('$number / $total migrations have been committed ✔');
}
}
}