1
0
Fork 0
mirror of https://github.com/Oreolek/kohana-migrations.git synced 2024-06-26 03:40:54 +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 ($target === NULL)
{ {
if ($up) if ($down)
{
$target = TRUE;
}
elseif ($down)
{ {
$target = FALSE; $target = FALSE;
} }
else else
{ {
echo "No migration target specified\n"; $target = TRUE;
return;
} }
} }