summaryrefslogtreecommitdiffstats
path: root/lib/private/Repair
Commit message (Collapse)AuthorAgeFilesLines
* Add logrote as a default background jobRoeland Jago Douma2017-10-241-0/+47
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* dont run invalid path repair step when upgrading from 11.0.5.2 and laterRobin Appelman2017-10-031-3/+11
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Ask the schema whether the table and column existJoas Schilling2017-09-081-13/+6
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #6331 from nextcloud/update-repair-stepMorris Jobke2017-09-041-2/+2
|\ | | | | Generate system wide key pair (update repair step after backport)
| * move repair step to stable12Bjoern Schiessle2017-09-011-2/+2
| | | | | | | | | | | | | | because we decided to backport it the repair step needs to be executed already on stable12 Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* | Add mimetype support for .URL (Windows) and .webloc (macOS) files. Update ↵Thomas Ebert2017-08-311-1/+14
|/ | | | | | places/link svg. Add filetype/link icon. Add repair step for mime types. Signed-off-by: Thomas Ebert <thomas.ebert@te-online.net>
* Merge pull request #5870 from nextcloud/generate-system-wide-key-pairBjörn Schießle2017-08-241-0/+110
|\ | | | | extend the identity proof manager to allow system wide key pairs
| * add prefix to user and system keys to avoid name collisionsBjoern Schiessle2017-08-101-0/+110
| | | | | | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* | Merge pull request #6004 from ↵Roeland Jago Douma2017-08-101-0/+60
|\ \ | |/ |/| | | | | nextcloud/forward-5902-repair-drop-account-terms-on-oc-migration [13] Repair step: drop account terms on oc migration
| * Add a repair step to drop the account_terms table on oc migrationJoas Schilling2017-08-071-0/+60
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Use indexed column path_hash to find the parentJoas Schilling2017-08-091-2/+2
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add a method to compare empty strings with an expressionJoas Schilling2017-08-021-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix repair step for oracle...Joas Schilling2017-08-021-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Use selectAlias()Joas Schilling2017-08-021-2/+4
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Can not insert auto increment on oracleJoas Schilling2017-08-021-1/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* More phpstorm inspection fixesRoeland Jago Douma2017-07-241-1/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Also repair storage id's when repairing invalid entriesRobin Appelman2017-07-211-4/+7
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Add Phan plugin to check for SQL injectionsLukas Reschke2017-07-204-0/+12
| | | | | | | | | | 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 invalid path repair step not getting all invalid entriesRobin Appelman2017-07-181-1/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #5715 from nextcloud/master-5655Morris Jobke2017-07-131-25/+66
|\ | | | | Fixed repair step
| * chunk getting invalid paths and reuse queriesRobin Appelman2017-07-131-27/+61
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * use a generator instead of fetching all rows at onceRobin Appelman2017-07-131-2/+9
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Don't throw an error when the table doesn't existJoas Schilling2017-07-121-0/+3
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #5424 from nextcloud/moveFromCache-from-sharedMorris Jobke2017-07-061-0/+129
|\ | | | | fix moving folders out of a cache jail
| * adjust to moved repair stepRobin Appelman2017-06-291-1/+5
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * Run repair step only onceMorris Jobke2017-06-221-3/+7
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
| * Add repair step for invalid pathsRobin Appelman2017-06-211-0/+121
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | added kml, kmz, tcx types as well while at itArthur Schiwon2017-06-141-1/+4
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | add geospatial mime types repair stepArthur Schiwon2017-06-141-0/+12
|/ | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Copy avatars to the new locationJoas Schilling2017-05-181-14/+56
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* We want to see 1 in 100 messages, not all but the 100thJoas Schilling2017-05-181-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add some more castingJoas Schilling2017-05-181-4/+4
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Avoid problems for some DBs by removing the table completlyJoas Schilling2017-05-181-4/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add a migration step to save the data from the accounts table before migratingJoas Schilling2017-05-181-0/+178
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add tests for repairstepLukas Reschke2017-04-261-1/+1
| | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Add app bundlesLukas Reschke2017-04-261-0/+78
| | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Add repair steps for new image mime typesStefan Weil2017-04-251-0/+13
| | | | Signed-off-by: Stefan Weil <sw@weilnetz.de>
* Remove unused use statementsMorris Jobke2017-04-221-1/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* fix whitespace in cleantagsRobin Appelman2017-03-301-1/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Adding tests for 4 byte unicode charactersMorris Jobke2017-03-211-6/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * success on SQLite and Postgres * failure on MySQL due to the limited charset that only supports up to 3 bytes Add config option to update charset of mysql to utf8mb4 * fully optional * requires additional options set in the database only disable unicode test on mysql Fixing ctor call Adding docker based unit test execution for mysql utf8mb4 Add mysqlmb4 test configuration to Jenkinsfile fix collation on utf8mb4 Properly setup charset and collation in the doctrine connection Allow files containing 4-byte chars in case the database supports it During setup of a mysql database we try to detect if charset 'utf8mb4' can be used Fix mysql settings Add console command to migrate the charset Set ROW_FORMAT before setting collation to mb4 Also select tables with wrong collation Faster MySQL docker Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Namespace and array syntax fixesMorris Jobke2017-03-191-1/+1
| | | | | | * minor fixes in preparation of a bigger DB and config PR Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix DIJoas Schilling2017-03-031-1/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Execute UpdateLanguageCode only onceMorris Jobke2017-03-021-1/+14
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix table name and add a test for more than 1 entriesJoas Schilling2017-03-021-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Change language code for languages with only one translationMorris Jobke2017-03-011-0/+75
| | | | | | | | | | | | * then the language is not that specific and get also matched for fi * fallback from fi_FI to fi is supported - the other way around not * contains repair script * contains tests for repair script * fixes #869 Order results to make postgres happy Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* cleanup old and not needed repair steps to speed up the updateMorris Jobke2017-02-2214-1481/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Remove unneeded UpdateCertificateStore.Morris Jobke2017-02-221-90/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Recognize .bat and .cmd filesJoas Schilling2017-02-101-0/+14
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #3176 from nextcloud/default-value-datadirblizzz2017-01-301-1/+1
|\ | | | | Add proper default value for datadir
| * Add proper default value for datadirMorris Jobke2017-01-191-1/+1
| | | | | | | | | | | | | | * better safe than sorry * fixes #3091 Signed-off-by: Morris Jobke <hey@morrisjobke.de>