mirror of
https://code.castopod.org/adaures/castopod
synced 2025-04-23 01:01:20 +00:00
33 lines
552 B
PHP
33 lines
552 B
PHP
![]() |
<?php
|
||
|
|
||
|
declare(strict_types=1);
|
||
|
|
||
|
namespace Modules\Update\Commands;
|
||
|
|
||
|
use CodeIgniter\CLI\BaseCommand;
|
||
|
|
||
|
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.';
|
||
|
|
||
|
public function run(array $params): void
|
||
|
{
|
||
|
$this->call('migrate', [
|
||
|
'all' => true,
|
||
|
]);
|
||
|
}
|
||
|
}
|