Skip to content

Commit 9787caf

Browse files
Merge remote-tracking branch '33092/trigger-unable-create' into comm_voted_v1
2 parents bd1d6b4 + 0dbca6d commit 9787caf

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

setup/src/Magento/Setup/Console/Command/UpgradeCommand.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
<?php
2+
23
/**
34
* Copyright © Magento, Inc. All rights reserved.
45
* See COPYING.txt for license details.
56
*/
7+
68
namespace Magento\Setup\Console\Command;
79

810
use 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

Comments
 (0)