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