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