summaryrefslogtreecommitdiffstats
path: root/core/Command
Commit message (Collapse)AuthorAgeFilesLines
* Fix background-job:execute command for QueuedJob instancesCôme Chilliet2022-07-111-1/+5
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Format the datetime for last run in ATOM formatCôme Chilliet2022-07-111-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Use symfony console table to render the job list properlyCôme Chilliet2022-07-112-3/+24
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Code cleaning of Background/ListCommandCôme Chilliet2022-07-111-14/+5
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Add command to list jobsCôme Chilliet2022-07-111-0/+95
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix undefined when no tagsDaniel Kesselberg2022-06-281-2/+4
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Fix importing float valueCarl Schwan2022-06-231-2/+2
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Update core to PHP 7.4 standardCarl Schwan2022-05-2087-714/+240
| | | | | | | - Typed properties - Port to LoggerInterface Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Merge pull request #32196 from nextcloud/bugfix/noid/fix-strict-comparisonJoas Schilling2022-05-021-1/+1
|\ | | | | Fix strict comparison
| * Fix strict comparisonJoas Schilling2022-04-271-1/+1
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Remove deprecated occ app:check-code commandCôme Chilliet2022-04-281-72/+0
|/ | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix type fixingJoas Schilling2022-04-251-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Give hints on correct migration versioningJoas Schilling2022-04-251-0/+32
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Additional index on oc_preferences to make sure that gettingh values without ↵Julius Härtl2022-04-191-0/+13
| | | | | | a user filter is fast Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Allow to autocomplete user and group ids in commandsJoas Schilling2022-04-0811-10/+205
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #31661 from ↵blizzz2022-04-051-1/+1
|\ | | | | | | | | nextcloud/enh/user_ldap-add-command-to-unmap-groups Add ldap:reset-group command to unmap groups from LDAP
| * Add ldap:reset-group command to unmap groups from LDAPCôme Chilliet2022-04-011-1/+1
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Merge pull request #31687 from nextcloud/enhancement/passwordless-app-passwordsChristoph Wurst2022-04-041-10/+12
|\ \ | |/ |/| Allow app passwords without login password for occ user:add-app-password
| * Allow app passwords without login password for occ user:add-app-passwordChristoph Wurst2022-03-231-10/+12
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Merge pull request #31735 from nextcloud/fix/noid/mig-generator-copyrightCôme Chilliet2022-03-291-0/+24
|\ \ | | | | | | migration generator also includes copyright section
| * | migration generator also includes copyright sectionArthur Schiwon2022-03-281-0/+24
| | | | | | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | | Merge pull request #31609 from nextcloud/fix/migrate-away-from-iloggerCôme Chilliet2022-03-291-10/+8
|\ \ \ | |/ / |/| | Migrate from ILogger to LoggerInterface in lib/private
| * | Adapt more code to migration to LoggerInterfaceCôme Chilliet2022-03-241-10/+8
| |/ | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* / Don't create cards_abiduri it if already existsLouis Chemineau2022-03-241-5/+9
|/ | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Allow creating app passwords without validating the user's password againJoas Schilling2022-03-141-4/+1
| | | | | | Aparently the idea behind the command was exactly to do this. Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #31511 from ↵Joas Schilling2022-03-111-1/+7
|\ | | | | | | | | nextcloud/bugfix/noid/allow-installing-unstable-versions Allow installing unstable app versions based on channel and with `--allow-unstable` just like on updates
| * Allow installing unstable versionsJoas Schilling2022-03-101-1/+7
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Validate the password before generating an apptokenJoas Schilling2022-03-101-2/+4
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Trigger an event to log an activity when an administrator generates an app ↵Joas Schilling2022-03-101-6/+11
|/ | | | | | password Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #31304 from nextcloud/feature/dry_run_for_add_indicesChristoph Wurst2022-02-283-37/+130
|\ | | | | Add --dry-run option for add-missing-* cmd
| * Add --dry-run option for db:add-missing-* cmdLouis Chemineau2022-02-243-37/+130
| | | | | | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* | Improve performance when converting between DBsCarl Schwan2022-02-161-15/+25
|/ | | | | | | | | Use a transaction when doing multiple inserts increase the writing speed. Ref: https://stackoverflow.com/a/68495887 Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Add index for direct editing cleanup jobJulius Härtl2022-02-071-0/+13
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Fixes occ user:info when the user never logged inCôme Chilliet2022-01-271-1/+5
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Use the new function in user:setting occ commandCôme Chilliet2022-01-241-21/+7
| | | | | | instead of direct database queries Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Merge pull request #30275 from ↵Vincent Petry2022-01-141-2/+2
|\ | | | | | | | | nextcloud/bugfix/noid/add-version-of-disabled-apps-when-available Add version of disabled apps when available
| * Add version of disabled apps when availableJoas Schilling2021-12-151-2/+2
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Check style updateCarl Schwan2022-01-136-8/+7
| | | | | | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* | Fix a few psalm issues and moved back to psalm/phar 4.18Carl Schwan2022-01-123-4/+4
| | | | | | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* | Add missing index for propertypath only queries against propertiesChristoph Wurst2021-12-231-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 an index for selecting the next jobJoas Schilling2021-12-011-0/+13
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix ArrayAccess and JsonSerializable return typesCôme Chilliet2021-11-231-1/+1
| | | | | | First round of modifications for PHP 8.1 Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Do not print verbose info about app updates if there are noneChristoph Wurst2021-11-181-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>
* 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>