/** * @param InputInterface $input * @param OutputInterface $output */ public function execute(InputInterface $input, OutputInterface $output) { try { $this->databaseSchemaManipulator->createSchema(); $output->writeln('Database created.'); } catch (InvalidStateException $e) { $output->writeln($e->getMessage()); } }
/** * @param InputInterface $input * @param OutputInterface $output */ public function execute(InputInterface $input, OutputInterface $output) { $this->databaseSchemaManipulator->updateSchema(); $output->writeln('Database tables has been updated.'); }