From e9da2ef27f12127b2283c29f1226e7a511a233a1 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Sat, 21 Jan 2012 10:34:58 -0600 Subject: [PATCH] added comment to migrator and use the DS constant. --- laravel/cli/tasks/migrate/migrator.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/laravel/cli/tasks/migrate/migrator.php b/laravel/cli/tasks/migrate/migrator.php index 15061887..7d404d55 100644 --- a/laravel/cli/tasks/migrate/migrator.php +++ b/laravel/cli/tasks/migrate/migrator.php @@ -194,12 +194,12 @@ public function make($arguments = array()) // next migration at the same time unknowingly. $date = date('Y_m_d').'_'.time(); - $path = Bundle::path($bundle).'migrations'.DIRECTORY_SEPARATOR; + $path = Bundle::path($bundle).'migrations'.DS; - if ( ! is_dir($path)) - { - mkdir($path); - } + // If the migration directory does not exist for the bundle, + // we will create the directory so there aren't errors when + // when we try to write the migration file. + if ( ! is_dir($path)) mkdir($path); File::put($path.$date.'_'.$migration.EXT, $this->stub($bundle, $migration));