mirror of
https://github.com/Oreolek/kohana-migrations.git
synced 2024-06-28 20:55:08 +03:00
Fix bug where migrations to +/- would not work properly. Fixes #16
This commit is contained in:
parent
e6cdf3ce32
commit
b55a258760
|
@ -444,6 +444,12 @@ class Model_Minion_Migration extends Model
|
||||||
return array(NULL, $up);
|
return array(NULL, $up);
|
||||||
}
|
}
|
||||||
|
|
||||||
return array((string) $query->execute($this->_db)->get('timestamp'), $up);
|
// Seek to the requested row
|
||||||
|
for ($i = 0; $i < $amount - 1; $i++)
|
||||||
|
{
|
||||||
|
$results->next();
|
||||||
|
}
|
||||||
|
|
||||||
|
return array((string) $results->get('timestamp'), $up);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue