summaryrefslogtreecommitdiffstats
path: root/lib/private/Setup/PostgreSQL.php
Commit message (Collapse)AuthorAgeFilesLines
* Update license headersChristoph Wurst2019-12-051-1/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Some php-cs fixesRoeland Jago Douma2019-11-221-0/+1
| | | | | | | | | | | * Order the imports * No leading slash on imports * Empty line before namespace * One line per import * Empty after imports * Emmpty line at bottom of file Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* solve code reviewVitor Mattos2019-04-221-1/+1
| | | | Signed-off-by: Vitor Mattos <vitor@php.rio>
* Check if database exists and grand permissionVitor Mattos2019-04-211-2/+4
| | | | Signed-off-by: Vitor Mattos <vitor@php.rio>
* Bugfix: user is not allowedVitor Mattos2019-04-211-0/+2
| | | | | | The created user don't has permission to connect to database. I changed the code to give permission Signed-off-by: Vitor Mattos <vitor@php.rio>
* Cleanup some PHPDoc leftovers and unused variablesMorris Jobke2019-03-061-6/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Remove unneeded semicolon and parenthesesMorris Jobke2018-01-261-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update license headersMorris Jobke2017-11-061-2/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Install from migrationsJoas Schilling2017-07-251-5/+0
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add Phan plugin to check for SQL injectionsLukas Reschke2017-07-201-0/+5
| | | | | | | | | | This adds a phan plugin which checks for SQL injections on code using our QueryBuilder, while it isn't perfect it should already catch most potential issues. As always, static analysis will sometimes have false positives and this is also here the case. So in some cases the analyzer just doesn't know if something is potential user input or not, thus I had to add some `@suppress SqlInjectionChecker` in front of those potential injections. The Phan plugin hasn't the most awesome code but it works and I also added a file with test cases. Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Fix translationsJoas Schilling2017-04-181-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Use SystemConfig instead of AllConfig for DB stuffMorris Jobke2017-03-191-5/+4
| | | | | | * preparation for followup PRs to clean up the DB bootstrapping Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Allow to reuse the same name when installing a new instanceJoas Schilling2016-12-121-7/+9
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Lower the role name before using itJoas Schilling2016-12-091-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Revert "Quote database and role in queries"Joas Schilling2016-12-091-4/+4
| | | | This reverts commit 9ebd5d5bb20af9178e071c3c6f3b41d9a9bc8be0.
* Quote database and role in queriesLari Tikkanen2016-12-071-4/+4
| | | | | Fixes #1793 Signed-off-by: Lari Tikkanen <lartza@outlook.com>
* handle postgres setup when we cant connect as adminRobin Appelman2016-12-051-39/+49
|
* Use proper ALTER ROLE syntaxRoeland Jago Douma2016-09-051-1/+1
| | | | | | Fixes #1260 See https://www.postgresql.org/docs/9.0/static/sql-alterrole.html
* Update with robinJoas Schilling2016-07-211-1/+1
|
* Fix othersJoas Schilling2016-07-211-4/+5
|
* Prevent syntax error when creating user or changing passwordJoas Schilling2016-07-181-3/+3
|
* use pdo for postgres setupRobin Appelman2016-07-121-103/+82
|
* Changed the input option for database-port to required when parameter was ↵Thomas Pulzer2016-07-061-2/+2
| | | | | | provided. Added casting database port to int for input sanitation in pgsql and oci connections.
* Added occ install option for database-port.Thomas Pulzer2016-07-061-4/+7
| | | | | Extended the database setup to store the database port. Changed the PostgreSQL connection error message for clarification.
* Update license headersLukas Reschke2016-05-261-0/+1
|
* Move \OC\Repair to PSR-4Roeland Jago Douma2016-04-221-0/+173