added comment to migrator and use the DS constant.

This commit is contained in:
Taylor Otwell 2012-01-21 10:34:58 -06:00
parent 5e82788b4d
commit e9da2ef27f
1 changed files with 5 additions and 5 deletions

View File

@ -194,12 +194,12 @@ public function make($arguments = array())
// next migration at the same time unknowingly. // next migration at the same time unknowingly.
$date = date('Y_m_d').'_'.time(); $date = date('Y_m_d').'_'.time();
$path = Bundle::path($bundle).'migrations'.DIRECTORY_SEPARATOR; $path = Bundle::path($bundle).'migrations'.DS;
if ( ! is_dir($path)) // If the migration directory does not exist for the bundle,
{ // we will create the directory so there aren't errors when
mkdir($path); // when we try to write the migration file.
} if ( ! is_dir($path)) mkdir($path);
File::put($path.$date.'_'.$migration.EXT, $this->stub($bundle, $migration)); File::put($path.$date.'_'.$migration.EXT, $this->stub($bundle, $migration));