mirror of
https://github.com/ad-aures/castopod.git
synced 2026-03-31 13:29:25 +02:00
35 lines
614 B
PHP
35 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();
|
|
}
|
|
}
|