| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 17 | 
| Code Lines | 9 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 26 | public function handle()  | 
            ||
| 27 |     { | 
            ||
| 28 |         $database = $this->argument('database'); | 
            ||
| 29 | |||
| 30 | // Display some helpfull info  | 
            ||
| 31 |         if (empty($database)) { | 
            ||
| 32 |             $this->comment("Preparing the migrations for database: {$this->getDatabaseName()}"); | 
            ||
| 33 | $database = $this->getDatabaseName();  | 
            ||
| 34 |         } else { | 
            ||
| 35 |             $this->comment("Preparing the migrations for database {$database}"); | 
            ||
| 36 | }  | 
            ||
| 37 | |||
| 38 |         $this->fireAction('migrate', $database); | 
            ||
| 39 | |||
| 40 | // Symfony style block messages  | 
            ||
| 41 |         $this->blockMessage('Success!', 'Database migrations generated in: '.$this->handler->getMigrationsFilePath()); | 
            ||
| 42 | }  | 
            ||
| 43 | |||
| 46 |