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:
parent
99eca42020
commit
483d9dac79
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue