summaryrefslogtreecommitdiffstats
path: root/lib/private/DB
Commit message (Collapse)AuthorAgeFilesLines
* Fix wrong hint about missing indexesMorris Jobke2018-06-131-3/+3
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Add a hint that some indexes are not added yetMorris Jobke2018-06-061-0/+39
| | | | | | | | | * gives the admin a chance to discover the missing indexes and improve the performance of the instance without digging through the manual * nicely integrated in the setup checks where this kind of hints belong to * also adds an option to integrate this from an app based on events * fix style of setting warnings Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge pull request #9425 from nextcloud/db-reconnect-timeoutMorris Jobke2018-06-042-1/+53
|\ | | | | Check connection status and attempt to reconnect each each minute
| * Check connection status and attempt to reconnect each each minuteRobin Appelman2018-05-082-1/+53
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Add human readable description to migration stepsRobin Appelman2018-05-301-4/+23
|/ | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Move regex to a function and add testsJoas Schilling2018-04-191-11/+24
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Allow IPv6 database hostsJoas Schilling2018-04-181-6/+7
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* dont keep shared database locks when running cli scriptsRobin Appelman2018-04-111-0/+8
| | | | | | For cli scripts we don't have the assumption that the universe will be cleaned up soon Signed-off-by: Robin Appelman <robin@icewind.nl>
* Fix Array to String conversion in QueryBuilderRoeland Jago Douma2018-04-051-1/+1
| | | | | | Fixes #9080 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Made IExpressionBuilder varadicRoeland Jago Douma2018-03-131-8/+6
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Made orHaving varadicRoeland Jago Douma2018-03-131-3/+3
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Made addHaving varadicRoeland Jago Douma2018-03-131-3/+3
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Make having varadicRoeland Jago Douma2018-03-131-3/+3
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Made addGroupBy varadicRoeland Jago Douma2018-03-131-3/+5
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Made groupBy varadicRoeland Jago Douma2018-03-131-3/+5
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Made orWhere varadicRoeland Jago Douma2018-03-131-3/+3
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Made andWhere varadicRoeland Jago Douma2018-03-131-3/+3
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Made where varadicRoeland Jago Douma2018-03-131-3/+3
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Made AddSelect varadicRoeland Jago Douma2018-03-131-3/+5
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Made select varadicRoeland Jago Douma2018-03-131-3/+5
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #7419 from Abijeet/feature-7175Morris Jobke2018-03-066-13/+27
|\ | | | | Fixes #7175 - Allow to search for email address in user management
| * reuse query builderRobin Appelman2018-01-123-10/+13
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * refactor user searchingRobin Appelman2017-12-204-4/+15
| | | | | | | | | | | | add additional user searching tests Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Remove unused import statementsMorris Jobke2018-02-142-3/+0
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Create the migrations table also with the UTF8mb4 collationJoas Schilling2018-01-311-12/+10
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Use ::class statement instead of stringMorris Jobke2018-01-291-8/+8
| | | | | | | | 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>
* | Use short for of substr to not need strlen()Morris Jobke2018-01-252-2/+2
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Merge pull request #7909 from nextcloud/fix-migration-type-hintsMorris Jobke2018-01-172-21/+16
|\ \ | | | | | | Fix the type hints of migrations and correctly inject the wrapped sch…
| * | Fix the type hints of migrations and correctly inject the wrapped schema ↵Joas Schilling2018-01-172-21/+16
| | | | | | | | | | | | | | | | | | into migrations Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | Correctly drop the ownCloud migrations tableJoas Schilling2018-01-171-1/+1
|/ / | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Check if realpath() returns falseMorris Jobke2018-01-121-1/+1
| | | | | | | | | | | | realpath() returns false in case the directory does not exist. Found it while preparing strict_typing for PHP7+. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Drop the ownCloud migration table instead of reusing itJoas Schilling2018-01-041-3/+36
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* add postgresql10 compatibility to dbalRobin Appelman2017-11-222-98/+0
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Update license headersMorris Jobke2017-11-0618-8/+33
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Die NoCheckMigratorVictor Dubiniuk2017-10-303-41/+2
|
* Add foreign key support to OCPiotr Mrowczynski2017-10-301-4/+36
|
* quote index columns on oracle, handle all index changes, minor phpdoc cleanupJörn Friedrich Dreyer2017-10-301-27/+85
|
* Fix bigint handling on postgresJoas Schilling2017-09-292-0/+98
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add a method to compare empty strings with an expressionJoas Schilling2017-08-022-0/+45
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix ILIKE regex for oracleJoas Schilling2017-08-021-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Quote aliases as wellJoas Schilling2017-08-022-10/+24
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Function also accepts intsLukas Reschke2017-08-011-1/+1
| | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Add brackets around concat statements so comparing the result works as intendedJoas Schilling2017-07-282-2/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* "Only variables must be passed by reference"Joas Schilling2017-07-251-2/+4
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Use order by to avoid problems when chunking finds a same item again...Joas Schilling2017-07-251-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add Phan plugin to check for SQL injectionsLukas Reschke2017-07-201-0/+1
| | | | | | | | | | 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>
* Only create the migration directory when necessaryJoas Schilling2017-07-061-9/+4
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add migration for personal settings stuffJoas Schilling2017-07-051-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix the installer testsJoas Schilling2017-07-051-1/+5
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>