castopod/modules/Update/Commands/DatabaseUpdate.php
Yassine Doghri f295e9aa4c chore: update CodeIgniter to v4.5.6
+ update php dependencies to latest
2024-12-29 16:02:08 +00:00

36 lines
614 B
PHP

<?php
declare(strict_types=1);
namespace Modules\Update\Commands;
use CodeIgniter\CLI\BaseCommand;
use Override;
class DatabaseUpdate extends BaseCommand
{
/**
* @var string
*/
protected $group = 'maintenance';
/**
* @var string
*/
protected $name = 'castopod:database-update';
/**
* @var string
*/
protected $description = 'Runs all new database migrations for Castopod.';
#[Override]
public function run(array $params): void
{
$migrate = service('migrations');
$migrate->setNamespace(null)
->latest();
}
}