1
0
Fork 0
mirror of https://github.com/Oreolek/kohana-migrations.git synced 2024-06-16 15:01:08 +03:00

Updating config for 3.2

This commit is contained in:
Matt Button 2011-06-27 20:57:21 +01:00
parent 8b38ab7025
commit 5a1fecabe1
4 changed files with 5 additions and 5 deletions

View file

@ -33,7 +33,7 @@ abstract class Minion_Migration_Base {
*/
public function get_database_connection()
{
$config = Kohana::config('minion/migration');
$config = Kohana::$config->load('minion/migration');
$group = $this->_info['group'];
if (isset($config->group_connection[$group]))

View file

@ -20,7 +20,7 @@ class Minion_Migration_Database extends Database_MySQL {
$db_group = Database::$default;
}
$config = Kohana::config('database')->$db_group;
$config = Kohana::$config->load('database')->$db_group;
}
return new Minion_Migration_Database('__minion_faux', $config);

View file

@ -132,10 +132,10 @@ class Minion_Migration_Manager {
foreach ($migrations as $migration)
{
if ($method == 'down' AND $migration['timestamp'] <= Kohana::config('minion/migration')->lowest_migration)
if ($method == 'down' AND $migration['timestamp'] <= Kohana::$config->load('minion/migration')->lowest_migration)
{
Minion_CLI::write(
'You\'ve reached the lowest migration allowed by your config: '.Kohana::config('minion/migration')->lowest_migration,
'You\'ve reached the lowest migration allowed by your config: '.Kohana::$config->load('minion/migration')->lowest_migration,
'red'
);
return;

View file

@ -67,7 +67,7 @@ class Minion_Task_Db_Migrate extends Minion_Task
*/
public function execute(array $config)
{
$k_config = Kohana::config('minion/migration');
$k_config = Kohana::$config->load('minion/migration');
$groups = Arr::get($config, 'group', Arr::get($config, 'groups', NULL));
$target = Arr::get($config, 'migrate-to', NULL);