diff options
author | Morris Jobke <hey@morrisjobke.de> | 2016-09-05 11:28:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-05 11:28:40 +0200 |
commit | 5f1fbf499b754e42022af4e7ea0ddbbeecafcb40 (patch) | |
tree | 3bbf43e7b486c82f6da139f1f853a9d3995c754f | |
parent | 8b484eedf029b8e1a9dcef0efb09db381888c4b0 (diff) | |
parent | 7fb88ec506bca6490b4db07d1ab60308cd6675c9 (diff) | |
download | nextcloud-server-5f1fbf499b754e42022af4e7ea0ddbbeecafcb40.tar.gz nextcloud-server-5f1fbf499b754e42022af4e7ea0ddbbeecafcb40.zip |
Merge pull request #1268 from nextcloud/fix_1260
Use proper ALTER ROLE syntax
-rw-r--r-- | lib/private/Setup/PostgreSQL.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Setup/PostgreSQL.php b/lib/private/Setup/PostgreSQL.php index 3647d5bdcec..85755ea4218 100644 --- a/lib/private/Setup/PostgreSQL.php +++ b/lib/private/Setup/PostgreSQL.php @@ -143,7 +143,7 @@ class PostgreSQL extends AbstractDatabase { try { if ($this->userExists($connection)) { // change the password - $query = $connection->prepare("ALTER ROLE " . addslashes($this->dbUser) . " CREATEDB WITH PASSWORD '" . addslashes($this->dbPassword) . "'"); + $query = $connection->prepare("ALTER ROLE " . addslashes($this->dbUser) . " WITH CREATEDB PASSWORD '" . addslashes($this->dbPassword) . "'"); } else { // create the user $query = $connection->prepare("CREATE USER " . addslashes($this->dbUser) . " CREATEDB PASSWORD '" . addslashes($this->dbPassword) . "'"); |