aboutsummaryrefslogtreecommitdiffstats
path: root/core/Command/Upgrade.php
Commit message (Collapse)AuthorAgeFilesLines
* chore: Add SPDX headerAndy Scherzinger2024-05-261-30/+4
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* fix: Apply new coding standard to all filesCôme Chilliet2024-04-021-4/+4
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* feat(updater): hide overwrites from disabled apps list on upgradeMichaIng2024-02-271-2/+5
| | | | | | | | If an incompatible app is enabled manually, it is added to the "app_install_overwrite" array in config.php. Nextcloud upgrades won't disable any app in this array, but they were still shown on the upgrade page and logs as being disabled. This commit assures that only apps which are really disabled, i.e. which are not in the "app_install_overwrite" array, are shown and logged as disabled during upgrades. Signed-off-by: MichaIng <micha@dietpi.com>
* lazy AppConfigMaxence Lange2024-01-151-11/+2
| | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* chore: apply changes from Nextcloud coding standards 1.1.1Joas Schilling2023-11-231-4/+4
| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* Uses PHP8's constructor property promotion.Faraz Samapoor2023-06-241-8/+5
| | | | | | in core/Command and /TwoFactorAuth classes. Signed-off-by: Faraz Samapoor <fsa@adlas.at>
* composer run cs:fixCôme Chilliet2023-01-201-4/+4
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Parameter of RepairAdvanceEvent is actually an increment, not a step idCôme Chilliet2022-08-251-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Add void return types to callablesCôme Chilliet2022-08-251-2/+2
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Migrate Repair events to OCP\EventDispatcher\EventCôme Chilliet2022-08-251-52/+46
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Migrate Migrator::executeSql to OCP\EventDispatcher\EventCôme Chilliet2022-08-251-23/+25
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Remove listeners of \OC\DB\Migrator::checkTable which is never emittedCôme Chilliet2022-08-251-1/+0
| | | | | | See commit a2f3077ee802b4b291ba4f846bfceb69ec0f225f from PR #24384 Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Moving to string key for arguments of GenericEvent in RepairCôme Chilliet2022-08-251-8/+8
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Switch to string keys for argument of GenericEvent for OC\DB\MigratorCôme Chilliet2022-08-251-4/+4
| | | | | | It seems checkTable is actually never dispatched? Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Update core to PHP 7.4 standardCarl Schwan2022-05-201-8/+3
| | | | | | | - Typed properties - Port to LoggerInterface Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Check style updateCarl Schwan2022-01-131-2/+1
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* 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>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-041-1/+1
| | | | 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>
* Fix psalm errorsJoas Schilling2021-04-271-8/+6
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Remove event listener to udpate events that are not present anymoreMorris Jobke2021-03-251-12/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix markupJoas Schilling2021-01-181-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-161-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix tense of updater logsNils Wittenbrink2020-09-101-2/+2
| | | | Signed-off-by: Nils Wittenbrink <nilswittenbrink@web.de>
* Add return value to all commandsJoas Schilling2020-06-261-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update license headers for 19Christoph Wurst2020-04-291-1/+0
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add visibility to all constantsChristoph Wurst2020-04-101-6/+6
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-101-7/+5
| | | | | | | | | | | | | | | To continue this formatting madness, here's a tiny patch that adds unified formatting for control structures like if and loops as well as classes, their methods and anonymous functions. This basically forces the constructs to start on the same line. This is not exactly what PSR2 wants, but I think we can have a few exceptions with "our" style. The starting of braces on the same line is pracrically standard for our code. This also removes and empty lines from method/function bodies at the beginning and end. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use elseif instead of else ifChristoph Wurst2020-04-101-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Unify function spacing to PSR2 recommendationChristoph Wurst2020-04-091-19/+19
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update the license headers for Nextcloud 19Christoph Wurst2020-03-311-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use the short array syntax, everywhereChristoph Wurst2020-03-261-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2019-12-051-2/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Make sure maintenance mode is always casted to boolJoas Schilling2019-02-221-2/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* 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>
* 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>
* Remove unused import statementsMorris Jobke2018-02-141-1/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge pull request #7354 from nextcloud/refacor-update-page-printblizzz2018-01-221-1/+2
|\ | | | | Refactor method to check if update is needed
| * Refactor method to check if update is neededMorris Jobke2017-11-301-1/+2
| | | | | | | | | | | | There was only one call, that actually needed the parameter to be set to true. So this change moved the print of the page to that location and replaces all other occurences with a direct call to the underlying OCP API. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Remove not needed 3rdparty app disabling during upgrade for PHP 5.xMorris Jobke2018-01-191-13/+1
|/ | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Get the Installer via DIMorris Jobke2017-11-251-2/+6
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update license headersMorris Jobke2017-11-061-0/+3
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Proper logging for appstore updatesMorris Jobke2017-05-111-1/+7
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Do not disable 3rdparty apps on occ upgradeMorris Jobke2017-04-271-7/+3
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Remove removed --dry-run command from occ help (#26352)Vincent Petry2016-10-211-6/+0
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Remove unused and undefined use statementLukas Reschke2016-09-271-1/+1
| | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Kill update simulationVincent Petry2016-09-271-27/+2
| | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* make disabled apps more clear during upgradeRobin Appelman2016-08-091-2/+2
|
* Exit from upgrade without reporting errorJürgen Haas2016-08-031-1/+1
| | | As reported at https://help.nextcloud.com/t/silent-mode-for-occ-upgrade/2120 we should exit with a return value of 0 (zero) if the current instance is already up to date so that automatic deployment tools don't recognize that as an error.