| Total Complexity | 1 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 24 | class MigrationGenerateCommand extends QtCommand |
||
| 25 | { |
||
| 26 | |||
| 27 | /** |
||
| 28 | * The console command name. |
||
| 29 | * @var string |
||
| 30 | */ |
||
| 31 | protected $name = 'migration:generate'; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * The console command description. |
||
| 35 | * @var string |
||
| 36 | */ |
||
| 37 | protected $description = 'Generates new migration file'; |
||
| 38 | |||
| 39 | /** |
||
| 40 | * Command arguments |
||
| 41 | * @var \string[][] |
||
| 42 | */ |
||
| 43 | protected $args = [ |
||
| 44 | ['action', 'required', 'The action to perform. [create] for creating table, [alter] for altering table, [rename] for renaming table, [drop] for dropping table'], |
||
| 45 | ['table', 'required', 'The table name'], |
||
| 46 | ]; |
||
| 47 | |||
| 48 | /** |
||
| 49 | * Executes the command |
||
| 50 | */ |
||
| 51 | public function exec() |
||
| 61 |