* @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */ namespace PrestaShopBundle\Service\Database; use PrestaShopBundle\Command\UpdateSchemaCommand; use PrestaShopBundle\Service\Command\AbstractCommand; class Upgrade extends AbstractCommand { /** * Run the custom schemaUpgrade command. */ public function addDoctrineSchemaUpdate() { $updateSchemaCommand = $this->kernel->getContainer()->get(UpdateSchemaCommand::class); $this->application->add($updateSchemaCommand); $this->commands[] = [ 'command' => 'prestashop:schema:update-without-foreign', '--env' => _PS_ENV_, ]; } }