Skip to content

Commit

Permalink
Merge pull request #5174 from tao-s/patch-21
Browse files Browse the repository at this point in the history
データベースが常にsqliteになってしまって動かない不具合の修正
  • Loading branch information
chihiro-adachi authored Nov 29, 2021
2 parents 5f9be90 + 1c9d77d commit 530906d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Eccube/Command/InstallerCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ protected function interact(InputInterface $input, OutputInterface $output)
$databaseUrl = 'sqlite:///var/eccube.db';
}
$this->envFileUpdater->databaseUrl = $this->io->ask('Database Url', $databaseUrl);
$databaseUrl = $this->envFileUpdater->databaseUrl;

// DATABASE_SERVER_VERSION
$this->envFileUpdater->serverVersion = $this->getDatabaseServerVersion($databaseUrl);
Expand Down Expand Up @@ -252,7 +253,7 @@ protected function getDatabaseName($databaseUrl)
if (0 === strpos($databaseUrl, 'sqlite')) {
return 'sqlite';
}
if (0 === strpos($databaseUrl, 'postgres')) {
if (0 === strpos($databaseUrl, 'postgres') || 0 === strpos($databaseUrl, 'pgsql')) {
return 'postgres';
}
if (0 === strpos($databaseUrl, 'mysql')) {
Expand Down

0 comments on commit 530906d

Please sign in to comment.