11<?php
2+
23/**
34 * Copyright © Magento, Inc. All rights reserved.
45 * See COPYING.txt for license details.
56 */
7+
68namespace Magento \Setup \Console \Command ;
79
810use Magento \Deploy \Console \Command \App \ConfigImportCommand ;
@@ -31,7 +33,7 @@ class UpgradeCommand extends AbstractSetupCommand
3133 /**
3234 * Option to skip deletion of generated/code directory.
3335 */
34- const INPUT_KEY_KEEP_GENERATED = 'keep-generated ' ;
36+ public const INPUT_KEY_KEEP_GENERATED = 'keep-generated ' ;
3537
3638 /**
3739 * Installer service factory.
@@ -55,7 +57,7 @@ class UpgradeCommand extends AbstractSetupCommand
5557 */
5658 private $ searchConfigFactory ;
5759
58- /*
60+ /**
5961 * @var CacheInterface
6062 */
6163 private $ cache ;
@@ -142,8 +144,8 @@ protected function execute(InputInterface $input, OutputInterface $output)
142144 $ searchConfig = $ this ->searchConfigFactory ->create ();
143145 $ this ->cache ->clean ();
144146 $ searchConfig ->validateSearchEngine ();
145- $ installer ->removeUnusedTriggers ();
146147 $ installer ->installSchema ($ request );
148+ $ installer ->removeUnusedTriggers ();
147149 $ installer ->installDataFixtures ($ request , true );
148150
149151 if ($ this ->deploymentConfig ->isAvailable ()) {
@@ -163,6 +165,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
163165 '<info>Please re-run Magento compile command. Use the command "setup:di:compile"</info> '
164166 );
165167 }
168+
166169 $ output ->writeln (
167170 "<info>Media files stored outside of 'Media Gallery Allowed' folders "
168171 . " will not be available to the media gallery.</info> "
0 commit comments