1
0
Fork 0
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:
Matt Button 2010-12-30 02:10:08 +00:00
parent e7b6911806
commit a3636f866f

View file

@ -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