public function actionNew($limit = 10)
{
$limit = (int) $limit;
$migrations = $this->getNewMigrations();
if (empty($migrations)) {
echo "No new migrations found. Your system is up-to-date.\n";
} else {
$n = count($migrations);
if ($limit > 0 && $n > $limit) {
$migrations = array_slice($migrations, 0, $limit);
echo "Showing {$limit} out of {$n} new " . ($n === 1 ? 'migration' : 'migrations') . ":\n";
} else {
echo "Found {$n} new " . ($n === 1 ? 'migration' : 'migrations') . ":\n";
}
foreach ($migrations as $migration => $alias) {
echo " " . $migration . " (" . $alias . ")" . "\n";
}
}
}