1
0
Fork 0
mirror of https://github.com/Oreolek/kohana-migrations.git synced 2024-06-30 21:55:05 +03:00

db:generate should use hours with leading zeros for migration timestamp

This commit is contained in:
Matt Button 2011-01-04 15:29:04 +00:00
parent 3b16943795
commit afa54b9e4a

View file

@ -55,7 +55,7 @@ class Minion_Task_Db_Generate extends Minion_Task
$description = $config['description']; $description = $config['description'];
// {year}{month}{day}{hour}{minute}{second} // {year}{month}{day}{hour}{minute}{second}
$time = date('YmdGis'); $time = date('YmdHis');
$class = $this->_generate_classname($location, $time); $class = $this->_generate_classname($location, $time);
$file = $this->_generate_filename($location, $time, $description); $file = $this->_generate_filename($location, $time, $description);