Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ProklUng committed Aug 16, 2021
1 parent ae917cd commit 3d58ee2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion readme.MD
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

`DB_HOST='127.0.0.1'`
`DB_NAME='database'`
`DB_USER=root`
`DB_USER=root # Или DB_LOGIN`
`DB_PASSWORD=''`

#### Команды
Expand Down
2 changes: 1 addition & 1 deletion src/Commands/DbDrop.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ protected function execute(InputInterface $input, OutputInterface $output)

$dbHost = $_ENV['DB_HOST'];
$dbName = $_ENV['DB_NAME'];
$dbLogin = $_ENV['DB_USER'];
$dbLogin = $_ENV['DB_USER'] ?: (string)$_ENV['DB_LOGIN'];
$dbPassword = $_ENV['DB_PASSWORD'];

if (!$dbHost || !$dbName || !$dbLogin) {
Expand Down
2 changes: 1 addition & 1 deletion src/Commands/DbExport.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ protected function execute(InputInterface $input, OutputInterface $output)

$dbHost = $_ENV['DB_HOST'];
$dbName = $_ENV['DB_NAME'];
$dbLogin = $_ENV['DB_USER'];
$dbLogin = $_ENV['DB_USER'] ?: (string)$_ENV['DB_LOGIN'];
$dbPassword = $_ENV['DB_PASSWORD'];

if (!$dbHost || !$dbName || !$dbLogin) {
Expand Down
2 changes: 1 addition & 1 deletion src/Commands/DbImport.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ protected function execute(InputInterface $input, OutputInterface $output)

$dbHost = $_ENV['DB_HOST'];
$dbName = $_ENV['DB_NAME'];
$dbLogin = $_ENV['DB_USER'];
$dbLogin = $_ENV['DB_USER'] ?: (string)$_ENV['DB_LOGIN'];
$dbPassword = $_ENV['DB_PASSWORD'];

if (!$dbHost || !$dbName || !$dbLogin) {
Expand Down

0 comments on commit 3d58ee2

Please sign in to comment.