summaryrefslogtreecommitdiffstats
path: root/core/Command
Commit message (Collapse)AuthorAgeFilesLines
* add support for boolean defaultMaxence Lange2019-01-091-1/+5
| | | | | | | | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com> code cleaning Signed-off-by: Maxence Lange <maxence@artificial-owl.com> code cleaning Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* Add twofactor_providers_uid indexRoeland Jago Douma2018-12-211-2/+15
| | | | | | Fixes #12943 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Add setup check for pending bigint conversionMorris Jobke2018-12-051-0/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix bigint conversion on SQLiteMorris Jobke2018-12-051-1/+5
| | | | | | * on SQLite primary keys can't be bigint - see https://stackoverflow.com/a/18835967/520507 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Show columns to update in CLI interfaceMorris Jobke2018-12-051-1/+5
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use the defined func()->count() instead of manual countingJoas Schilling2018-11-081-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix index namesMorris Jobke2018-11-061-2/+2
| | | | * see #11527
* Merge pull request #11053 from nextcloud/occ-app-update-commandMorris Jobke2018-11-021-0/+125
|\ | | | | occ app update command
| * Log exception in case an app update failsMorris Jobke2018-11-011-1/+7
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
| * Add occ app:update commandMichael Gerber2018-11-011-0/+119
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Revert "Wait for cron to finish before running upgrade command"Morris Jobke2018-11-011-5/+1
|/ | | | | | This reverts commit 18e9631810ad1d3d72c2b4bbee330169808108ad. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge pull request #11627 from nextcloud/feature/noid/cli-remove-appMorris Jobke2018-10-301-0/+149
|\ | | | | Add occ app:remove CLI command
| * Use error styling for exception messagePatrik Kernstock2018-10-101-2/+2
| | | | | | | | Signed-off-by: Patrik Kernstock <info@pkern.at>
| * Using Throwable instead of ExceptionPatrik Kernstock2018-10-101-2/+3
| | | | | | | | Signed-off-by: Patrik Kernstock <info@pkern.at>
| * Log exception using ILoggerPatrik Kernstock2018-10-051-1/+14
| | | | | | | | Signed-off-by: Patrik Kernstock <info@pkern.at>
| * Inject AppManager and Installer, check for shipped app prior removingPatrik Kernstock2018-10-051-6/+29
| | | | | | | | Signed-off-by: Patrik Kernstock <info@pkern.at>
| * Run uninstall tasks by default, added '--keep-data' parameterPatrik Kernstock2018-10-051-0/+19
| | | | | | | | Signed-off-by: Patrik Kernstock <info@pkern.at>
| * Add occ app:remove CLI commandPatrik Kernstock2018-10-051-0/+93
| | | | | | | | Signed-off-by: Patrik Kernstock <info@pkern.at>
* | Merge pull request #11765 from nextcloud/feature/mandatory-2fa-for-groupsMorris Jobke2018-10-151-6/+31
|\ \ | | | | | | Mandatory 2FA for groups
| * | Make it possible to enforce mandatory 2FA for groupsChristoph Wurst2018-10-151-6/+31
| | | | | | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | | Check if TTY is invalid in encryption:encrypt-all and encryption:decrypt-allEvgeny Golyshev2018-10-142-0/+16
|/ / | | | | | | Signed-off-by: Evgeny Golyshev <eugulixes@gmail.com>
* | Rename method to abortIfInterruptedDaniel Kesselberg2018-10-081-1/+1
| | | | | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* | Refactor method to throw exception instead of true/falseDaniel Kesselberg2018-10-071-7/+11
|/ | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Validate email in occ commandDaniel Kesselberg2018-10-021-0/+4
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Add --admin-email to cli installerDaniel Kesselberg2018-10-021-0/+3
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Add uid_owner and uid_initiator share tabe indicesRoeland Jago Douma2018-10-011-0/+16
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Add mandatory 2FA service/classChristoph Wurst2018-09-301-0/+91
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Only allow 2FA state changs if providers support the operationChristoph Wurst2018-09-254-14/+92
| | | | | | | | Ref https://github.com/nextcloud/server/issues/11019. Add `twofactorauth:cleanup` command Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Improve class import and strict typing for generated migration classChristoph Wurst2018-09-071-6/+10
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #10334 from denismosolov/group-addDenis Mosolov2018-08-242-0/+141
|\ | | | | Add options to create/remove groups via occ
| * Add an options to create and remove groups via occDenis Mosolov2018-08-162-0/+141
| | | | | | | | Signed-off-by: Denis Mosolov <denismosolov@gmail.com>
* | Fix generated migration class codeChristoph Wurst2018-08-211-3/+0
|/ | | | | | The `@since` documentation is out of place here. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #10298 from ↵Morris Jobke2018-07-241-1/+1
|\ | | | | | | | | nextcloud/bugfix/talk-714/only-migrate-the-schema-when-moving-database Only create the schema when moving between databases
| * Only create the schema when moving between databasesJoas Schilling2018-07-191-1/+1
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Add filecache index on mtimeRobin Appelman2018-07-191-0/+11
|/ | | | | | Gives searching by mtime and "recent" a proper index to use Signed-off-by: Robin Appelman <robin@icewind.nl>
* Correctly handle users with numeric user idsJoas Schilling2018-07-091-1/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Adds an info if the maintenance mode is already enabled/disabled.Michael Weimann2018-07-011-5/+14
| | | | Signed-off-by: Michael Weimann <mail@michael-weimann.eu>
* Added a logger for systemd/journaldJohannes Ernst2018-06-291-2/+3
| | | | | | Added a unit test Signed-off-by: Johannes Ernst <jernst@indiecomputing.com>
* Use the correct Base classJoas Schilling2018-06-271-4/+0
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #9632 from nextcloud/enhancement/stateful-2fa-providersMorris Jobke2018-06-251-0/+110
|\ | | | | Stateful 2fa providers
| * Make 2FA providers statefulChristoph Wurst2018-06-201-0/+110
| | | | | | | | | | | | | | | | | | | | | | This adds persistence to the Nextcloud server 2FA logic so that the server knows which 2FA providers are enabled for a specific user at any time, even when the provider is not available. The `IStatefulProvider` interface was added as tagging interface for providers that are compatible with this new API. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Use ellipsis instead of triple dotJoas Schilling2018-06-221-1/+1
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Wait for cron to finish before running upgrade commandMorris Jobke2018-06-191-1/+5
|/ | | | | | * fixes #9562 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Add parent index to share tableRoeland Jago Douma2018-06-031-1/+9
| | | | | | Fixes #9327 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Add human readable description to migration stepsRobin Appelman2018-05-301-1/+10
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Emit event when running ./occ db:add-missing-indicesRoeland Jago Douma2018-05-241-7/+15
| | | | | | | This allows apps to listen to this event in order to also update indecies there. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Add autocomplete to migration commandsJoas Schilling2018-05-035-11/+145
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Set the default log rotate size to 100 MBMorris Jobke2018-04-111-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use isInstalled of AppManger instead of reimplement itMorris Jobke2018-03-211-0/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* s/ownCloud/NextcloudBjoern Schiessle2018-03-011-1/+1
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>