Skip to content

Commit 1af3192

Browse files
author
Oleksii Korshenko
authored
MAGETWO-81645: Add db-prefix from env conf when command admin:user:create is executed #11199
2 parents 68011ba + adca621 commit 1af3192

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

setup/src/Magento/Setup/Model/Installer.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1010,6 +1010,7 @@ private function installOrderIncrementPrefix($orderIncrementPrefix)
10101010
public function installAdminUser($data)
10111011
{
10121012
$this->assertDbConfigExists();
1013+
$data += ['db-prefix' => $this->deploymentConfig->get(ConfigOptionsListConstants::CONFIG_PATH_DB_PREFIX)];
10131014
$setup = $this->setupFactory->create($this->context->getResources());
10141015
$adminAccount = $this->adminAccountFactory->create($setup->getConnection(), (array)$data);
10151016
$adminAccount->save();

0 commit comments

Comments
 (0)