mirror of
https://github.com/Oreolek/kohana-migrations.git
synced 2024-06-30 21:55:05 +03:00
29 lines
539 B
PHP
29 lines
539 B
PHP
|
<?php
|
||
|
|
||
|
/**
|
||
|
* Displays the current status of migrations in all locations
|
||
|
*
|
||
|
* 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->locations = $model->get_location_statuses();
|
||
|
|
||
|
echo $view;
|
||
|
}
|
||
|
}
|