Split detail page contracts
This commit is contained in:
26
lib/Console/Commands/Module/MigrateCommand.php
Normal file
26
lib/Console/Commands/Module/MigrateCommand.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user