1
0
Fork 0
mirror of https://github.com/Oreolek/kohana-migrations.git synced 2024-06-16 15:01:08 +03:00

if target is null and down is false, then assume up is true

This commit is contained in:
Bob Eagan 2011-02-18 17:49:06 -07:00
parent 99eca42020
commit 483d9dac79

View file

@ -81,18 +81,13 @@ class Minion_Task_Db_Migrate extends Minion_Task
if ($target === NULL)
{
if ($up)
{
$target = TRUE;
}
elseif ($down)
if ($down)
{
$target = FALSE;
}
else
{
echo "No migration target specified\n";
return;
$target = TRUE;
}
}