27 lines
576 B
PHP
27 lines
576 B
PHP
<?php
|
|
|
|
namespace MintyPHP\Console\Commands\Module;
|
|
|
|
use MintyPHP\Console\Command;
|
|
|
|
final class MigrateCommand extends Command
|
|
{
|
|
public function name(): string
|
|
{
|
|
return 'module:migrate';
|
|
}
|
|
|
|
public function description(): string
|
|
{
|
|
return 'Apply pending module SQL migrations';
|
|
}
|
|
|
|
public function execute(array $args, array $options): int
|
|
{
|
|
require_once __DIR__ . '/../../../../bin/module-cli-bootstrap.php';
|
|
require_once __DIR__ . '/../../../../bin/module-migrate.php';
|
|
|
|
return moduleMigrateRun();
|
|
}
|
|
}
|