fix migrator.
This commit is contained in:
parent
64c284bcfa
commit
75abe2237b
|
@ -192,7 +192,7 @@ public function make($arguments = array())
|
||||||
// is a better way of ordering migrations than a simple integer
|
// is a better way of ordering migrations than a simple integer
|
||||||
// incrementation, since developers may start working on the
|
// incrementation, since developers may start working on the
|
||||||
// next migration at the same time unknowingly.
|
// next migration at the same time unknowingly.
|
||||||
$prefix = date('Y_m_d');
|
$prefix = date('Y_m_d').'_'.time();
|
||||||
|
|
||||||
$path = Bundle::path($bundle).'migrations'.DS;
|
$path = Bundle::path($bundle).'migrations'.DS;
|
||||||
|
|
||||||
|
|
|
@ -116,7 +116,7 @@ protected function resolve($migrations)
|
||||||
// naming collisions with other bundle's migrations.
|
// naming collisions with other bundle's migrations.
|
||||||
$prefix = Bundle::class_prefix($bundle);
|
$prefix = Bundle::class_prefix($bundle);
|
||||||
|
|
||||||
$class = $prefix.substr($name, 11);
|
$class = $prefix.substr($name, 22);
|
||||||
|
|
||||||
$migration = new $class;
|
$migration = new $class;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue