Skip to content

Commit

Permalink
データベースが常にsqliteになってしまって動かない不具合の修正
Browse files Browse the repository at this point in the history
  • Loading branch information
tao-s committed Sep 21, 2021
1 parent d9d079a commit 1e32c27
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 1e32c27

Please sign in to comment.