Skip to content

Commit

Permalink
Introduce MigrateCommand class
Browse files Browse the repository at this point in the history
  • Loading branch information
yhabteab committed Jul 19, 2023
1 parent ad4d79d commit 5f1ebd7
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions application/clicommands/MigrateCommand.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?php

/* Icinga Reporting | (c) 2023 Icinga GmbH | GPLv2 */

namespace Icinga\Module\Reporting\Clicommands;

use Icinga\Module\Reporting\Cli\Command;
use Icinga\Module\Reporting\ProvidedHook\Migration;

class MigrateCommand extends Command
{
/**
* Migrate the `start` and `frequency` column of the schedule table to the config json
*
* USAGE
*
* icingacli reporting migrate schedules
*/
public function schedulesAction()
{
Migration::migrateSchedules($this->getDb());
}
}

0 comments on commit 5f1ebd7

Please sign in to comment.