mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-15 20:47:46 +02:00
feat: add about page in admin with instance info + database update button
This commit is contained in:
parent
c668f1c151
commit
d0836f3ee3
13 changed files with 242 additions and 14 deletions
32
modules/Update/Commands/DatabaseUpdate.php
Normal file
32
modules/Update/Commands/DatabaseUpdate.php
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
<?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,
|
||||
]);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue