| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php namespace Nwidart\LaravelBroadway\Console; |
||
| 11 | public function handle() |
||
| 12 | { |
||
| 13 | $table = $this->argument('table'); |
||
| 14 | $this->laravel->config['broadway.event-store-table'] = $table; |
||
| 15 | |||
| 16 | $migrations = app('migration.repository'); |
||
| 17 | $migrations->createRepository(); |
||
| 18 | |||
| 19 | $migrator = app('migrator'); |
||
| 20 | $migrator->run(__DIR__ . '/../../migrations'); |
||
| 21 | |||
| 22 | $this->info("Table [$table] created!"); |
||
| 23 | } |
||
| 24 | |||
| 32 |