tweaked migration date for last time.

This commit is contained in:
Taylor Otwell 2012-01-30 10:15:11 -06:00
parent 75abe2237b
commit 8423b972d8
2 changed files with 2 additions and 2 deletions

View File

@ -192,7 +192,7 @@ public function make($arguments = array())
// is a better way of ordering migrations than a simple integer
// incrementation, since developers may start working on the
// next migration at the same time unknowingly.
$prefix = date('Y_m_d').'_'.time();
$prefix = date('Y_m_d_His');
$path = Bundle::path($bundle).'migrations'.DS;

View File

@ -116,7 +116,7 @@ protected function resolve($migrations)
// naming collisions with other bundle's migrations.
$prefix = Bundle::class_prefix($bundle);
$class = $prefix.substr($name, 22);
$class = $prefix.substr($name, 18);
$migration = new $class;