summaryrefslogtreecommitdiffstats
path: root/lib/private/Setup
Commit message (Collapse)AuthorAgeFilesLines
* postgresql - add quotes around user namesSimon L2023-03-101-4/+4
| | | | | | fix https://github.com/nextcloud/server/issues/37114 Signed-off-by: Simon L <szaimen@e.mail.de>
* add option to disable db user creation trough environment variableRobin Appelman2023-02-213-44/+53
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* composer run cs:fixCôme Chilliet2023-01-201-1/+0
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Bugfix to support postgres15Vitor Mattos2022-11-111-0/+11
| | | | | | Signed-off-by: Vitor Mattos <vitor@php.rio> Signed-off-by: Simon L <szaimen@e.mail.de> Co-Authored-By: Joas Schilling <213943+nickvergessen@users.noreply.github.com>
* Do not store generated mysql password if it was not usedJulius Härtl2022-09-201-0/+3
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* l10n: Correct error messagesValdnet2022-09-161-3/+3
| | | Signed-off-by: Valdnet <47037905+Valdnet@users.noreply.github.com>
* l10n: Correct error messagesValdnet2022-09-161-4/+4
| | | Signed-off-by: Valdnet <47037905+Valdnet@users.noreply.github.com>
* Create more secure passwords by defaultJoas Schilling2022-08-121-4/+10
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Recover installation when creating the user failedJoas Schilling2022-08-121-0/+7
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Use {$var} instead of ${var} for PHP 8.2 compatibilityCôme Chilliet2022-06-141-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix return type for createSpecificUserDaniel Kesselberg2022-05-191-2/+1
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Rename userName to username to align with child classesDaniel Kesselberg2022-05-191-2/+2
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Check style updateCarl Schwan2022-01-131-1/+1
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Introduce ISecureRandom::CHAR_ALPHANUMERICJ0WI2021-07-082-2/+3
| | | | Signed-off-by: J0WI <J0WI@users.noreply.github.com>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-045-7/+1
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Fix PHP CSJoas Schilling2021-04-271-1/+0
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix psalm errorsJoas Schilling2021-04-272-13/+20
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Less ILoggerJoas Schilling2021-04-272-12/+9
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Bump nextcloud/coding-standard from 0.3.0 to 0.5.0dependabot-preview[bot]2021-02-181-1/+1
| | | | | | | | | | Bumps [nextcloud/coding-standard](https://github.com/nextcloud/coding-standard) from 0.3.0 to 0.5.0. - [Release notes](https://github.com/nextcloud/coding-standard/releases) - [Changelog](https://github.com/nextcloud/coding-standard/blob/master/CHANGELOG.md) - [Commits](https://github.com/nextcloud/coding-standard/compare/v0.3.0...v0.5.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Only use alphanumeric chars for mysql passwordJoas Schilling2021-01-181-1/+2
| | | | | | / and + can cause problems with other tools that you might want to run on your Nextcloud database. Signed-off-by: Joas Schilling <coding@schilljs.com>
* Bump doctrine/dbal from 2.12.0 to 3.0.0Christoph Wurst2021-01-083-29/+28
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add more previous exceptions to database setup codeMorris Jobke2021-01-073-4/+4
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-161-2/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Revert "Revert "Installation goes brrrr""Joas Schilling2020-11-111-1/+1
|
* Revert "Installation goes brrrr"Christoph Wurst2020-11-111-1/+1
|
* Only update the schema when we install anywayJoas Schilling2020-11-111-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Format code to a single space around binary operatorsChristoph Wurst2020-10-052-6/+6
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Remove @suppress SqlInjectionCheckerMorris Jobke2020-09-161-1/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update license headers for 19Christoph Wurst2020-04-292-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-102-8/+7
| | | | | | | | | | | | | | | To continue this formatting madness, here's a tiny patch that adds unified formatting for control structures like if and loops as well as classes, their methods and anonymous functions. This basically forces the constructs to start on the same line. This is not exactly what PSR2 wants, but I think we can have a few exceptions with "our" style. The starting of braces on the same line is pracrically standard for our code. This also removes and empty lines from method/function bodies at the beginning and end. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use elseif instead of else ifChristoph Wurst2020-04-102-5/+5
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update the license headers for Nextcloud 19Christoph Wurst2020-03-313-1/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use the short array syntax, everywhereChristoph Wurst2020-03-263-13/+13
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Check the new connection on setup like with PostgreSQL and OracleJoas Schilling2020-02-051-0/+10
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Only provide the auth method for MySQL 8.0+ to not break MariaDBJoas Schilling2020-02-051-4/+13
| | | | | | Provide the auth method for MySQL 8.0+ Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update license headersChristoph Wurst2019-12-055-6/+9
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Some php-cs fixesRoeland Jago Douma2019-11-223-0/+3
| | | | | | | | | | | * 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>
* Fix installing with MySQL 8.0.4+Joas Schilling2019-11-201-2/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #15187 from vitormattos/bugfix-create-database-userRoeland Jago Douma2019-08-081-0/+4
|\ | | | | Bugfix: user is not allowed
| * 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>
* | Use specific privileges when creating adminOliver Salzburg2019-07-161-1/+1
|/ | | | | | | | | | | Using the ALL shorthand can cause problems when not all privileges are available to the user. For example, AWS RDS MariaDB/MySQL will not grant the initial user account on an instance the SUPER privilege. While the user account is still valid for pretty much any task on the DB instance, it can not use the ALL shorthand when granting privileges to new users. By supplying a specific set of privileges, we work around this limitation without sacrificing functionality. Closes #16139 Signed-off-by: Oliver Salzburg <oliver.salzburg@gmail.com>
* Cleanup some PHPDoc leftovers and unused variablesMorris Jobke2019-03-061-6/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use empty instead ?? because dbname is '' sometimesDaniel Kesselberg2018-09-231-2/+7
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Use const for dbname and dbtableprefix defaultsDaniel Kesselberg2018-09-231-6/+33
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* --database-name or --database-table-prefix are ignored for sqliteDaniel Kesselberg2018-09-231-4/+2
| | | | | | | | | | The default implementation of initialize in AbstractDatabase writes database information to config.php. The method is overwritten in Sqlite but parent is never called. Database-Name and Database-Table-Prefix are never written to config.php. But from this point setup use values from config. Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* move log constants to ILoggerArthur Schiwon2018-04-261-4/+5
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Remove unneeded semicolon and parenthesesMorris Jobke2018-01-262-2/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Properly log the full exception instead of only the messageMorris Jobke2018-01-231-10/+14
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>