| Total Complexity | 2 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | class MigrateDbInProduction extends Command |
||
| 10 | { |
||
| 11 | public const SUCCESS_MESSAGE = "Running database migrations because the app env is 'production'."; |
||
| 12 | public const FAILURE_MESSAGE = "Skipped running database migrations because the app env is NOT 'production'."; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * The name and signature of the console command. |
||
| 16 | * |
||
| 17 | * @var string |
||
| 18 | */ |
||
| 19 | protected $signature = 'migrate:prod'; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * The console command description. |
||
| 23 | * |
||
| 24 | * @var string |
||
| 25 | */ |
||
| 26 | protected $description = 'Run the database migrations in production'; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Execute the console command. |
||
| 30 | */ |
||
| 31 | public function handle(): int |
||
| 45 |