Skip to content

Commit

Permalink
Add db-prefix from env conf
Browse files Browse the repository at this point in the history
  • Loading branch information
osrecio committed Oct 5, 2017
1 parent 9c14af7 commit 41410ac
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions setup/src/Magento/Setup/Model/Installer.php
Original file line number Diff line number Diff line change
Expand Up @@ -1010,6 +1010,7 @@ private function installOrderIncrementPrefix($orderIncrementPrefix)
public function installAdminUser($data)
{
$this->assertDbConfigExists();
$data += ['db-prefix' => $this->deploymentConfig->get(ConfigOptionsListConstants::CONFIG_PATH_DB_PREFIX)];
$setup = $this->setupFactory->create($this->context->getResources());
$adminAccount = $this->adminAccountFactory->create($setup->getConnection(), (array)$data);
$adminAccount->save();
Expand Down

0 comments on commit 41410ac

Please sign in to comment.