summaryrefslogtreecommitdiffstats
path: root/core/Command
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #28541 from nextcloud/path-prefix-index2Robin Appelman2021-10-191-0/+8
|\ | | | | add a prefix index to filecache.path, attempt 2
| * disable path prefix index on postgresql for nowRobin Appelman2021-10-081-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-081-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>
* | Adjust namespace and print a message when the job was skippedJoas Schilling2021-10-141-5/+14
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Move queries to the joblistJoas Schilling2021-10-141-23/+2
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Add a command to show info about a background job and force-execute itJoas Schilling2021-10-141-0/+168
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* add better index for finding unindexed pathsRobin Appelman2021-10-071-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 #28492 from nextcloud/bugfix/occ-statusCarl Schwan2021-09-301-4/+24
|\ | | | | Align occ status with status.php
| * Align occ status with status.phpJulius Härtl2021-08-261-4/+24
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | use specific email getter where necessaryArthur Schiwon2021-09-092-2/+2
|/ | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Add active user count to occ user:reportJulius Härtl2021-08-191-0/+3
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Add storage info to `user:info` commandJohn Molakvoæ (skjnldsv)2021-08-181-0/+19
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Make integrity commands verboseJoas Schilling2021-07-082-0/+4
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Move DateTime::ATOM to DateTimeInterface::ATOMChristoph Wurst2021-06-233-4/+4
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix typing errorLouis Chemineau2021-06-211-1/+5
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Convert command option defaults to stringsChristoph Wurst2021-06-093-6/+6
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #27429 from nextcloud/bug/26085/wrong-data-add-order-byChristoph Wurst2021-06-091-5/+2
|\ | | | | Don't pass a column object to addOrderBy
| * Fix #26085Daniel Kesselberg2021-06-081-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>
* | Update php licensesJohn Molakvoæ (skjnldsv)2021-06-0493-162/+64
| | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* | l10n: Spelling unificationValdnet2021-06-021-2/+2
|/ | | | | | Spelling unification in Transifex. Signed-off-by: Valdnet <47037905+Valdnet@users.noreply.github.com>
* Merge pull request #27099 from nextcloud/bugfix/noid/make-user-report-scaleJohn Molakvoæ2021-05-261-13/+26
|\
| * Make user:report command scaleJoas Schilling2021-05-261-13/+26
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Merge pull request #26600 from hosting-de/feature/occ-tagsMorris Jobke2021-05-254-0/+369
|\ \ | |/ |/| Add commands to manage tags via OCC
| * Add commands to manage tags via OCCJohannes Leuker2021-05-254-0/+369
| | | | | | | | | | | | list, add, delete, edit Signed-off-by: Johannes Leuker <j.leuker@hosting.de>
* | use the UID as loginName and not the display name.Bjoern Schiessle2021-05-111-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>
* | Fix psalm errorsJoas Schilling2021-04-271-8/+6
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Fix unit testsJoas Schilling2021-04-271-1/+2
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Revert "add a prefix index to filecache.path"Roeland Jago Douma2021-04-081-7/+0
|
* Merge pull request #26252 from Maxopoly/masterJohn Molakvoæ2021-04-071-1/+8
|\ | | | | Add force option to app install command
| * Add force option to app install commandMaxopoly2021-03-221-1/+8
| | | | | | | | Signed-off-by: Maxopoly <max@dermax.org>
* | Merge pull request #26281 from hosting-de/fix/emailRoeland Jago Douma2021-03-262-3/+3
|\ \ | | | | | | Change my email address
| * | Change my email addressJohannes Leuker2021-03-242-3/+3
| |/ | | | | | | Signed-off-by: Johannes Leuker <j.leuker@hosting.de>
* | Remove event listener to udpate events that are not present anymoreMorris Jobke2021-03-251-12/+0
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Cleanup unneeded code around database.xmlMorris Jobke2021-03-242-207/+0
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Bye bye database.xmlJoas Schilling2021-03-241-11/+7
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #25529 from ↵Morris Jobke2021-03-221-0/+202
|\ | | | | | | | | nextcloud/fix-non-lgc-glyphs-in-avatars-and-txt-file-previews Fix non LGC glyphs in avatars and txt file previews
| * Add OCC command to reset rendered textsDaniel Calviño Sánchez2021-03-011-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>
* | add a prefix index to filecache.pathRobin Appelman2021-03-191-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>
* | make repair errors more visibleRobin Appelman2021-03-181-1/+1
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | DB conversion: improve console outputSimon Spannagel2021-03-171-1/+4
| | | | | | | | Signed-off-by: Simon Spannagel <simonspa@kth.se>
* | Merge pull request #25660 from hosting-de/feature/add-backend-list-groupsRoeland Jago Douma2021-03-052-5/+103
|\ \ | | | | | | Show group backends in occ group:list --info and group:info
| * | Show group backends in occ group:list --info and group:infoJohannes Leuker2021-03-012-5/+103
| | | | | | | | | | | | Signed-off-by: Johannes Leuker <j.leuker@hosting.de>
* | | Check command inputRoeland Jago Douma2021-03-021-0/+5
| |/ |/| | | | | | | | | | | | | For #25839 We should check this else it crashed hard. Better to be gracefull. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Bump nextcloud/coding-standard from 0.3.0 to 0.5.0dependabot-preview[bot]2021-02-182-2/+2
|/ | | | | | | | | | Bumps [nextcloud/coding-standard](https://github.com/nextcloud/coding-standard) from 0.3.0 to 0.5.0. - [Release notes](https://github.com/nextcloud/coding-standard/releases) - [Changelog](https://github.com/nextcloud/coding-standard/blob/master/CHANGELOG.md) - [Commits](https://github.com/nextcloud/coding-standard/compare/v0.3.0...v0.5.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Make the app code checker a NOOPChristoph Wurst2021-02-111-122/+4
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* 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>