summaryrefslogtreecommitdiffstats
path: root/lib/private/DB
Commit message (Collapse)AuthorAgeFilesLines
* Remove trailing and in between spacesChristoph Wurst2020-04-093-6/+6
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Unify function spacing to PSR2 recommendationChristoph Wurst2020-04-095-27/+27
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use exactly one empty line after the namespace declarationChristoph Wurst2020-04-097-6/+1
| | | | | | For PSR2 Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix (array) indent style to always use one tabChristoph Wurst2020-04-091-19/+19
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix multiline commentsChristoph Wurst2020-04-082-9/+9
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #19890 from nextcloud/enh/comments-reference-idJoas Schilling2020-04-021-0/+43
|\ | | | | Add optional comments reference_id
| * Add optional column oc_comments.reference_idJoas Schilling2020-03-311-0/+43
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Update the license headers for Nextcloud 19Christoph Wurst2020-03-3111-3/+11
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #20170 from nextcloud/techdebt/remove-unused-importsChristoph Wurst2020-03-272-2/+0
|\ | | | | Remove unused imports
| * Remove unused importsChristoph Wurst2020-03-252-2/+0
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Use the short array syntax, everywhereChristoph Wurst2020-03-2610-24/+24
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix mismatching doc block parameter typesChristoph Wurst2020-03-062-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add event subscriber for transaction isolation levelDaniel Kesselberg2020-02-213-2/+47
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Pick a shorter name for the transfer ownership tableJoas Schilling2019-12-101-1/+1
| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Update license headersChristoph Wurst2019-12-0540-40/+69
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #17833 from nextcloud/propagator-no-negative-sizesRoeland Jago Douma2019-12-042-0/+17
|\ | | | | dont set folder size to negative values during propagation
| * add LEAST and GREATER to db function builderRobin Appelman2019-11-262-0/+17
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Merge pull request #17949 from nextcloud/debt/deprecated-constJoas Schilling2019-12-041-1/+2
|\ \ | |/ |/| Connection::TRANSACTION_READ_COMMITTED is deprecated
| * Connection::TRANSACTION_READ_COMMITTED is deprecatedDaniel Kesselberg2019-11-141-1/+2
| | | | | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* | Some php-cs fixesRoeland Jago Douma2019-11-2211-19/+15
| | | | | | | | | | | | | | | | | | | | | | * 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>
* | add count() as shortcut for count('*') in FunctionBuilderRobin Appelman2019-11-131-2/+3
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | return from QueryBuilder instead of IQueryBuilderRobin Appelman2019-11-131-31/+31
|/ | | | | | this make the type hints work properly with querybuilder subclasses Signed-off-by: Robin Appelman <robin@icewind.nl>
* add MAX and MIN to functionbuilderRobin Appelman2019-09-061-0/+8
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* instead of upsert, fallback to default query on PgSQL <= 9.4Arthur Schiwon2019-08-141-1/+22
| | | | | | because there is no upsert yet Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Add event dispatcher to OCPChristoph Wurst2019-06-251-4/+4
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* No need for platform hacks anymoreRoeland Jago Douma2019-05-141-22/+0
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Remove the custom prefix from the table name length when checking on the ↵Joas Schilling2019-04-301-1/+1
| | | | | | default primary index Signed-off-by: Joas Schilling <coding@schilljs.com>
* Allow to use Subqueries in fromJoas Schilling2019-04-161-0/+4
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Indeces, columns and sequences don't have the table prefixJoas Schilling2019-03-281-6/+6
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix PHPDocMorris Jobke2019-03-212-2/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Code cleanup.Ole Ostergaard2019-03-213-10/+8
| | | | Signed-off-by: Ole Ostergaard <ole.c.ostergaard@gmail.com>
* Add supression of SqlInjectionChecker.Ole Ostergaard2019-03-212-0/+6
| | | | Signed-off-by: Ole Ostergaard <ole.c.ostergaard@gmail.com>
* Add PostgreSQL specific implementation for includeIgnoreConflict.Ole Ostergaard2019-03-211-0/+12
| | | | Signed-off-by: Ole Ostergaard <ole.c.ostergaard@gmail.com>
* Add insertIgnoreConflict to Adapter and use it for for executing the file ↵Ole Ostergaard2019-03-212-0/+17
| | | | | | locking. Signed-off-by: Ole Ostergaard <ole.c.ostergaard@gmail.com>
* add casting to string for postgresql query builderRobin Appelman2019-03-141-5/+7
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Only check the Oracle schema conditions if the app supports itJoas Schilling2018-12-171-2/+23
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Only check changed itemsJoas Schilling2018-12-171-13/+18
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #11942 from nextcloud/techdebt/noid/use-count-functionMorris Jobke2018-11-121-2/+3
|\ | | | | Use the defined func()->count() instead of manual counting
| * Use the defined func()->count() instead of manual countingJoas Schilling2018-11-081-2/+3
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Add deprecation message ofr insertIfNotExistMorris Jobke2018-11-093-0/+3
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Catch UniqueConstraintViolationException inside insertIfNotExistMorris Jobke2018-11-093-5/+31
|/ | | | | | | | This is the most common case for the usage of this method. See also https://github.com/nextcloud/server/issues/12369 and the linked tickets. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use const for dbname and dbtableprefix defaultsDaniel Kesselberg2018-09-231-2/+8
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Disable Oracle enforcement for now until the following issues are solved:Joas Schilling2018-08-061-1/+2
| | | | | | | * Only apps should be checked which say they support oracle * Only check newly added items, to allow forward migration from an existing database structure Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix primary key handling on postgresJoas Schilling2018-07-271-3/+4
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Ignore custom prefixes which are longerJoas Schilling2018-07-271-9/+9
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Ignore automatic generated sequencesJoas Schilling2018-07-271-1/+10
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix calculation of default nameJoas Schilling2018-07-271-3/+23
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Prevent too long identifier namesJoas Schilling2018-07-271-1/+41
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Only create the schema when moving between databasesJoas Schilling2018-07-191-9/+15
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* MySQL 8.0+ and MariaDB 10.3+ are large prefix and barracuda by defaultJoas Schilling2018-07-091-4/+23
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>