Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-02-17Add expression taint source and sanitizerLukas Reschke
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2021-02-09Deprecate the internal IDBConnection event name constantsChristoph Wurst
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-01-12Add our own DB exception abstractionChristoph Wurst
Right now our API exports the Doctrine/dbal exception. As we've seen with the dbal 3 upgrade, the leakage of 3rdparty types is problematic as a dependency update means lots of work in apps, due to the direct dependency of what Nextcloud ships. This breaks this dependency so that apps only need to depend on our public API. That API can then be vendor (db lib) agnostic and we can work around future deprecations/removals in dbal more easily. Right now the type of exception thrown is transported as "reason". For the more popular types of errors we can extend the new exception class and allow apps to catch specific errors only. Right now they have to catch-check-rethrow. This is not ideal, but better than the dependnecy on dbal. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-01-08Bump doctrine/dbal from 2.12.0 to 3.0.0Christoph Wurst
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-11-10Create primary keys on all tables and add a command to create the afterwardsJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-10-30Psalm fixesRoeland Jago Douma
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2020-10-05Format code to a single space around binary operatorsChristoph Wurst
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-08-26Remove @package annotations from public namespaceJulius Härtl
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-04-10Add visibility to all constantsChristoph Wurst
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-04-10Format control structures, classes, methods and functionChristoph Wurst
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>
2020-04-09Use exactly one empty line after the namespace declarationChristoph Wurst
For PSR2 Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-04-02Merge pull request #19890 from nextcloud/enh/comments-reference-idJoas Schilling
Add optional comments reference_id
2020-03-31Update the license headers for Nextcloud 19Christoph Wurst
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-03-31Add optional column oc_comments.reference_idJoas Schilling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-03-26Use the short array syntax, everywhereChristoph Wurst
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2019-12-05Update license headersChristoph Wurst
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2019-11-22Some php-cs fixesRoeland Jago Douma
* 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>
2019-03-21Code cleanup.Ole Ostergaard
Signed-off-by: Ole Ostergaard <ole.c.ostergaard@gmail.com>
2019-03-21Add insertIgnoreConflict to IDBConnection interface.Ole Ostergaard
Signed-off-by: Ole Ostergaard <ole.c.ostergaard@gmail.com>
2018-11-09Add deprecation message ofr insertIfNotExistMorris Jobke
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2018-11-09Catch UniqueConstraintViolationException inside insertIfNotExistMorris Jobke
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>
2018-06-06Add a hint that some indexes are not added yetMorris Jobke
* 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>
2018-05-24Emit event when running ./occ db:add-missing-indicesRoeland Jago Douma
This allows apps to listen to this event in order to also update indecies there. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2017-11-06Update license headersMorris Jobke
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2017-07-05Start migrationsJoas Schilling
Fixme: - Install and update of apps - No revert on live systems (debug only) - Service adjustment to our interface - Loading via autoloader Signed-off-by: Joas Schilling <coding@schilljs.com>
2016-11-15@since 9.2.0 to @since 11.0.0Roeland Jago Douma
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2016-10-20Allow 4byte unicode filenames on supported platformsRobin Appelman
Signed-off-by: Robin Appelman <robin@icewind.nl>
2016-07-21Update with robinJoas Schilling
2016-07-21Fix othersJoas Schilling
2016-05-21Add a method to lock a tableJoas Schilling
2016-05-19Move \OCP to PSR-4Roeland Jago Douma