| Total Complexity | 2 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | class MigrateDatabaseCommand extends AbstractDatabaseCommand |
||
| 13 | { |
||
| 14 | public const NAME = 'db:migrate'; |
||
| 15 | public const DOCTRINE_MIGRATIONS_SCRIPT = 'vendor/doctrine/migrations/bin/doctrine-migrations.php'; |
||
| 16 | public const DOCTRINE_MIGRATE_COMMAND = 'migrations:migrate'; |
||
| 17 | |||
| 18 | 1 | protected function configure(): void |
|
| 19 | { |
||
| 20 | $this |
||
| 21 | 1 | ->setName(self::NAME) |
|
| 22 | 1 | ->setDescription('Runs database migrations, which will ensure the shlink database is up to date.'); |
|
| 23 | 1 | } |
|
| 24 | |||
| 25 | 1 | protected function lockedExecute(InputInterface $input, OutputInterface $output): int |
|
| 34 | } |
||
| 35 | } |
||
| 36 |