mirror of
https://github.com/Oreolek/kohana-migrations.git
synced 2024-07-02 22:55:03 +03:00
29 lines
585 B
PHP
29 lines
585 B
PHP
<?php defined('SYSPATH') or die('No direct script access.');
|
|
|
|
/**
|
|
* Displays the current status of migrations in all groups
|
|
*
|
|
* This task takes no config options
|
|
*
|
|
* @author Matt Button <matthew@sigswitch.com>
|
|
*/
|
|
class Minion_Task_Db_Status extends Minion_Task {
|
|
|
|
/**
|
|
* Execute the task
|
|
*
|
|
* @param array Config for the task
|
|
*/
|
|
public function execute(array $config)
|
|
{
|
|
$db = Database::instance();
|
|
$model = new Model_Minion_Migration($db);
|
|
|
|
$view = new View('minion/task/db/status');
|
|
|
|
$view->groups = $model->get_group_statuses();
|
|
|
|
echo $view;
|
|
}
|
|
}
|