18 lines
361 B
PHP
18 lines
361 B
PHP
<?php
|
|
|
|
namespace Nest\Cli\Commands\Migrations;
|
|
|
|
use Nest\Application;
|
|
use Nest\Cli\Commands\CommandHandler;
|
|
use Nest\Cli\Out;
|
|
|
|
class NewCommand extends CommandHandler
|
|
{
|
|
public function __invoke(string $name): void
|
|
{
|
|
// Create a new migration.
|
|
Application::get()->migrations()->newMigration($name);
|
|
|
|
Out::success("Migration successfully created.");
|
|
}
|
|
}
|