Fix skipping the 48to49 upgrade in arachne

Currently:
* 48to49 upgrades the machine stacks from 4000016 to 50000**16**
* 49to50 upgrades the machine stacks from 4000016 to 50000**18**
As a result, the versionUpgrader in arachne skips the 48to49 because it sees that the 49to50 also increments the setting version.
This is now fixed by making sure that the 49to50 upgrades from **5**000016 to 5000018.

CURA-8468
This commit is contained in:
Konstantinos Karmas 2021-08-18 09:47:06 +02:00
parent 7f79ccdf33
commit ef1d1dda5b

View file

@ -15,8 +15,8 @@ def getMetaData() -> Dict[str, Any]:
"version_upgrade": {
# From To Upgrade function
("preferences", 6000016): ("preferences", 6000018, upgrade.upgradePreferences),
("machine_stack", 4000016): ("machine_stack", 5000018, upgrade.upgradeStack),
("extruder_train", 4000016): ("extruder_train", 5000018, upgrade.upgradeStack),
("machine_stack", 5000016): ("machine_stack", 5000018, upgrade.upgradeStack),
("extruder_train", 5000016): ("extruder_train", 5000018, upgrade.upgradeStack),
("definition_changes", 4000016): ("definition_changes", 4000018, upgrade.upgradeInstanceContainer),
("quality_changes", 4000016): ("quality_changes", 4000018, upgrade.upgradeInstanceContainer),
("quality", 4000016): ("quality", 4000018, upgrade.upgradeInstanceContainer),