Conditions | 2 |
Paths | 2 |
Total Lines | 16 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
27 | public function fire() |
||
28 | { |
||
29 | $database = $this->argument('database'); |
||
30 | |||
31 | // Display some helpfull info |
||
32 | if (empty($database)) { |
||
33 | $this->comment("Preparing the migrations for 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 | |||
45 | } |