nextcloud / owncloud-web-migrator

Tool to migrate your ownCloud to Nextcloud
https://nextcloud.com/blog/3-reasons-to-upgrade-your-owncloud-instance-to-nextcloud-and-how-easy-it-is/
3 stars 4 forks source link

Allow migrating to the same version #2

Closed nickvergessen closed 2 years ago

nickvergessen commented 7 years ago

@jospoortvliet

Fix #1

jospoortvliet commented 7 years ago

Just tested and I can confirm it works flawlessly when upgrading: spectacle wx3893

Edit: Oh, shit: spectacle re3893 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.

jospoortvliet commented 7 years ago

@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?

vinzgreg commented 7 years ago

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)

MorrisJobke commented 7 years ago

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?

jospoortvliet commented 7 years ago

@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.

jospoortvliet commented 7 years ago

@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:

jospoortvliet commented 7 years ago

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

jospoortvliet commented 7 years ago

Ping on this...