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