setName(self::NAME) ->setHidden() ->setDescription('Runs database migrations, which will ensure the shlink database is up to date.'); } protected function lockedExecute(InputInterface $input, OutputInterface $output): int { $io = new SymfonyStyle($input, $output); $io->writeln('Migrating database...'); $this->runPhpCommand($output, [self::DOCTRINE_MIGRATIONS_SCRIPT, self::DOCTRINE_MIGRATE_COMMAND]); $io->success('Database properly migrated!'); return ExitCode::EXIT_SUCCESS; } }