Closed nickvergessen closed 2 years ago
Just tested and I can confirm it works flawlessly when upgrading:
Edit: Oh, shit: So I had to manually change the version number in config.php to 9.1.5.1 (from 9.1.6.2) to make this work.
@morrisjobke @lukasreschke if either of you could have a quick look at the code and check if it seems sane.
And how can we fix the problem that Nc then complains it doesn't support downgrades?
I did upgrade from 9.1.6 to 10.0.5 by hardcoding the version to 9.1.5. But now I am stuck as I can't upgrade further to 11.0.3. The updater suggests to update from 11.0.3 to 11.0.3. Or the updater is broken. I will check.
Or related to this here: https://github.com/nextcloud/server/issues/4713 The oc_accounts is not compatible? Guess this was the price of the downgrade? Happy to try out fixes.
@Joas - thanks for all your support on Twitter (@vinzgreg)
And how can we fix the problem that Nc then complains it doesn't support downgrades?
Because the oC patch level is higher than our patch level. I don't see an easy solution than to change the value in the config.php. Maybe reset it to the patch level x.y.0.0 when this script here is executed and we know it is coming from an oC instance?
@nickvergessen @LukasReschke Opinions on that?
@MorrisJobke well if we want to allow upgrading from any minor to our major then yeah, that makes most sense. Just put it to 0.0...
But it should excempt 10.x, until we're confident that that works.
@MorrisJobke / @nickvergessen any chance one of you could make the script reset the minor version to 0 in config.php? Then this could go in and upgrades go more smooth :see_no_evil:
By the way if/when this is fixed - there's a similar issue with the normal updater, it seems - at least https://github.com/nextcloud/server/issues/5064 and https://help.nextcloud.com/t/cannot-manually-upgrade-from-11-0-3/13054/4
Ping on this...
@jospoortvliet
Fix #1