mirror of
https://github.com/Oreolek/kohana-migrations.git
synced 2024-06-26 03:40:54 +03:00
Fixing a bug where there are no versioned locations
This commit is contained in:
parent
e7b6911806
commit
a3636f866f
|
@ -172,11 +172,18 @@ class Model_Minion_Migration extends Model
|
|||
|
||||
// The user wants to run all available migrations
|
||||
if(empty($locations))
|
||||
{
|
||||
if(count($migrations))
|
||||
{
|
||||
$keys = array_keys($migrations);
|
||||
|
||||
$locations = array_combine($keys, $keys);
|
||||
}
|
||||
else
|
||||
{
|
||||
$locations = $this->fetch_all('location', 'location');
|
||||
}
|
||||
}
|
||||
|
||||
// Merge locations with specified target versions
|
||||
if( ! empty($target_version) AND is_array($target_version))
|
||||
|
|
Loading…
Reference in a new issue