summaryrefslogtreecommitdiffstats
path: root/core/Command
Commit message (Collapse)AuthorAgeFilesLines
* Add version of disabled apps when availableJoas Schilling2022-01-141-2/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* add better index for finding unindexed pathsRobin Appelman2022-01-131-0/+7
| | | | | | | | | | for the following query 'SELECT "path" FROM "oc_filecache" WHERE ("storage" = $storage) AND ("size" < 0) ORDER BY "fileid" DESC LIMIT 1;' currently the database will in some cases decide to priorize the sort by fileid over the filter when picking what index to use, resulting in a much slower query. by creating an index that allows first sorting by fileid and also filter by storage and size this case will be greatly sped up Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #29325 from nextcloud/backport/28541/stable21John Molakvoæ2022-01-071-0/+8
|\
| * disable path prefix index on postgresql for nowRobin Appelman2021-10-211-1/+2
| | | | | | | | | | | | | | having the index work properly for the queries we need it for requires some additional options which dbal does not support at the momement. to prevent making it harder to add the correct index later on we don't create the index for now on postgresql Signed-off-by: Robin Appelman <robin@icewind.nl>
| * add a prefix index to filecache.pathRobin Appelman2021-10-211-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | The reason that `filecache.path` hasn't had an index added is the mysql limitation of ~1kb for indexeded fields, which is to small for the `path`, however mysql supports indexing only the first N bytes of a column instead of the entire column, allowing us to add an index even if the column is to long. Because the index doesn't cover the entire column it can't be used in all situations where a normal index would be used, but it does cover the `path like 'folder/path/%'` queries that are used in various places. Sqlite and Postgresql don't support prefix indexes, but they also don't have the 1kb limit and DBAL handles the differences in index creation. Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Add missing index for propertypath only queries against propertiesChristoph Wurst2021-12-291-0/+13
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Allow to delete non-migrated previews instead of moving themJohn Molakvoæ2021-12-091-6/+25
| | | | | | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* | Add active user count to occ user:reportJulius Härtl2021-11-241-0/+3
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Do not print verbose info about app updates if there are noneChristoph Wurst2021-11-221-6/+0
|/ | | | | | | | | | | This is cosmetical but if you have a large number of apps installed then you'll see a wall of text during the server and app upgrade when it tries to update each app via the app store. In may cases nothing will be updated. For those boring cases we can hide the verbose info, but show when occ is run with -v. Any actual update will still print a few lines. Those are the important ones for the admin. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix #26085Daniel Kesselberg2021-06-091-5/+2
| | | | | | | | addOrderBy expects a order expression. For the migration scenario we have column objects. Column objects are not supported by quoteColumnName yet. A column object as order expression is most likely an edgy thing when migration database information. Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Make user:report command scaleJoas Schilling2021-06-011-13/+26
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* use the UID as loginName and not the display name.Bjoern Schiessle2021-05-121-1/+1
| | | | | | Otherwise the app password will not work for users with a display name different to the UID. Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Add force option to app install commandMaxopoly2021-04-171-1/+8
| | | | Signed-off-by: Maxopoly <max@dermax.org>
* Revert "[stable21] add a prefix index to filecache.path"Roeland Jago Douma2021-04-081-7/+0
|
* add a prefix index to filecache.pathRobin Appelman2021-03-261-0/+7
| | | | | | | | | | | | The reason that `filecache.path` hasn't had an index added is the mysql limitation of ~1kb for indexeded fields, which is to small for the `path`, however mysql supports indexing only the first N bytes of a column instead of the entire column, allowing us to add an index even if the column is to long. Because the index doesn't cover the entire column it can't be used in all situations where a normal index would be used, but it does cover the `path like 'folder/path/%'` queries that are used in various places. Sqlite and Postgresql don't support prefix indexes, but they also don't have the 1kb limit and DBAL handles the differences in index creation. Signed-off-by: Robin Appelman <robin@icewind.nl>
* Add OCC command to reset rendered textsDaniel Calviño Sánchez2021-03-221-0/+202
| | | | | | | | | | The command is meant to be used when the fonts used to render texts ("core/fonts/NotoSans-Regular.ttf" and "core/fonts/NotoSans-Bold.ttf") are changed (for example, to add support for other scripts). The avatar and text file previews will be removed, so they will be generated again with the updated font when needed. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Fix markupJoas Schilling2021-01-181-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add a warning when trying to run integrity:check-core on gitJoas Schilling2021-01-181-0/+5
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Force run the verification of the signature on occJoas Schilling2021-01-181-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Migrate internal classes to the OCP db col typesChristoph Wurst2021-01-122-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Bump doctrine/dbal from 2.12.0 to 3.0.0Christoph Wurst2021-01-0811-48/+52
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add more previous exceptions to database setup codeMorris Jobke2021-01-071-0/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Print an exception trace for setup exceptionsChristoph Wurst2021-01-071-3/+19
| | | | | | | | | Right now any setup error will just result in the exception message being printed. In some cases this doesn't give any insights into what went wrong. This adds some dedicated logic to print the exception trace and any previous exceptions to the CLI. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Command: Add app password generationSean Molenaar2021-01-051-0/+137
| | | | Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
* Update license headersChristoph Wurst2020-12-301-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Make oc_files_trash.auto_id a bigintVincent Petry2020-12-231-0/+1
| | | | | | | Adjusted migration. Added to occ command to update existing tables. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-1612-12/+12
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #23044 from nextcloud/migration-10.5Roeland Jago Douma2020-12-101-0/+33
|\ | | | | Handle owncloud migration to latest release
| * Add missing index on oc_cards and rename if it previously existedJulius Härtl2020-12-091-0/+33
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Move columns to bigintJulius Härtl2020-12-081-0/+2
|/ | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Merge pull request #24348 from hosting-de/feature/console-user-display-nameMorris Jobke2020-12-021-10/+37
|\ | | | | Wrap display_name similarly to email to allow changes via occ
| * Wrap display_name similarly to email to allow changes via occJohannes Leuker2020-12-021-10/+37
| | | | | | | | Signed-off-by: Johannes Leuker <j.leuker@hosting.de>
* | Remove the deprecated update.phpChristoph Wurst2020-11-271-18/+0
|/ | | | | | | | * It was documented as deprecated. * The app code checker warned about it * It's been three years Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Create primary keys on all tables and add a command to create the afterwardsJoas Schilling2020-11-101-0/+181
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #23693 from nextcloud/bugfix/noid/import-cert-clarifyMorris Jobke2020-10-261-3/+3
|\ | | | | Clarify import cert command
| * Clarify import cert commandVincent Petry2020-10-261-3/+3
| | | | | | | | | | | | | | | | | | | | Add hint that the certificate to be imported must be in PEM format (CRT does not parse). Improved error message to mention that the given path must be accessible by the web server user. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* | Update ConvertFilecacheBigInt.phptimm2k2020-10-261-0/+1
|/
* Make the migration template typedJoas Schilling2020-10-151-3/+3
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Format code to a single space around binary operatorsChristoph Wurst2020-10-058-27/+27
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* add size index for filecacheRobin Appelman2020-09-221-0/+7
| | | | | | improves performance of #23004 Signed-off-by: Robin Appelman <robin@icewind.nl>
* Migrate verbose messages to inline syntax of writeln()Morris Jobke2020-09-171-11/+3
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Show lock messages only in verbose modeMorris Jobke2020-09-171-2/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Allow to run occ preview:repair in parallelMorris Jobke2020-09-171-1/+19
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Remove @suppress SqlInjectionCheckerMorris Jobke2020-09-161-1/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix tense of updater logsNils Wittenbrink2020-09-101-2/+2
| | | | Signed-off-by: Nils Wittenbrink <nilswittenbrink@web.de>
* Update the license headers for Nextcloud 20Christoph Wurst2020-08-2437-4/+43
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #22331 from ↵Roeland Jago Douma2020-08-201-5/+7
|\ | | | | | | | | nextcloud/bugfix/noid/dont-use-deprecated-inigetwrapper Don't use deprecated getIniWrapper() anymore
| * Don't use deprecated getIniWrapper() anymoreJoas Schilling2020-08-201-5/+7
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | New SSE key formatRoeland Jago Douma2020-08-201-0/+261
|/ | | | | | | * Encrypt the keys with the instance secret * Store them as json (so we can add other things if needed) Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Use matching parameter names form interfaces and implementationsMorris Jobke2020-08-191-2/+2
| | | | | | Found by Psalm 3.14.1 Signed-off-by: Morris Jobke <hey@morrisjobke.de>