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

Fix bug where migrations to +/- would not work properly. Fixes #16

This commit is contained in:
Jeremy Bush 2011-05-12 14:52:00 -05:00
parent e6cdf3ce32
commit b55a258760

View file

@ -444,6 +444,12 @@ class Model_Minion_Migration extends Model
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);
}
}