setAliases(['sync-metadata-storage'])
->setDescription('Ensures that the metadata storage is at the latest version.')
->setHelp(<<<'EOT'
The way metadata is stored in the database can change between releases.
The %command.name% command updates metadata storage to the latest version,
ensuring it is ready to receive migrations generated by the current version of Doctrine Migrations.
%command.full_name%
EOT);
}
public function execute(
InputInterface $input,
OutputInterface $output,
): int {
$this->getDependencyFactory()->getMetadataStorage()->ensureInitialized();
$this->io->success('Metadata storage synchronized');
return 0;
}
}