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
|
@ -173,9 +173,16 @@ class Model_Minion_Migration extends Model
|
||||||
// The user wants to run all available migrations
|
// The user wants to run all available migrations
|
||||||
if(empty($locations))
|
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
|
// Merge locations with specified target versions
|
||||||
|
|
Loading…
Reference in a new issue