mirror of
https://code.castopod.org/adaures/castopod.git
synced 2024-09-06 18:59:20 +02: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,
|
|
]);
|
|
}
|
|
}
|