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:
parent
8b38ab7025
commit
5a1fecabe1
|
@ -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]))
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue