diff options
author | Morris Jobke <hey@morrisjobke.de> | 2019-03-06 14:51:17 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2019-03-06 15:43:56 +0100 |
commit | 3f9cdeeb5fe9aee97e410ec59bbdd1c9cf3c33d5 (patch) | |
tree | af97bc7d57dfc676a99d1b19ace4235fac070e9c /lib/private/Setup | |
parent | bdf95ef0eca7ac1db75b743c9d6ca232e6d3f3a3 (diff) | |
download | nextcloud-server-3f9cdeeb5fe9aee97e410ec59bbdd1c9cf3c33d5.tar.gz nextcloud-server-3f9cdeeb5fe9aee97e410ec59bbdd1c9cf3c33d5.zip |
Cleanup some PHPDoc leftovers and unused variables
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib/private/Setup')
-rw-r--r-- | lib/private/Setup/PostgreSQL.php | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/private/Setup/PostgreSQL.php b/lib/private/Setup/PostgreSQL.php index 8e80c74d968..283ab5f925c 100644 --- a/lib/private/Setup/PostgreSQL.php +++ b/lib/private/Setup/PostgreSQL.php @@ -77,23 +77,18 @@ class PostgreSQL extends AbstractDatabase { //create the database $this->createDatabase($connection); - $query = $connection->prepare("select count(*) FROM pg_class WHERE relname=? limit 1"); - $query->execute([$this->tablePrefix . "users"]); - $tablesSetup = $query->fetchColumn() > 0; - // the connection to dbname=postgres is not needed anymore $connection->close(); } catch (\Exception $e) { $this->logger->logException($e); $this->logger->warning('Error trying to connect as "postgres", assuming database is setup and tables need to be created'); - $tablesSetup = false; $this->config->setValues([ 'dbuser' => $this->dbUser, 'dbpassword' => $this->dbPassword, ]); } - // connect to the ownCloud database (dbname=$this->dbname) and check if it needs to be filled + // connect to the database (dbname=$this->dbname) and check if it needs to be filled $this->dbUser = $this->config->getValue('dbuser'); $this->dbPassword = $this->config->getValue('dbpassword'); $connection = $this->connect(); |