diff options
author | Lipu Fei <lipu.fei815@gmail.com> | 2017-09-04 16:39:07 +0300 |
---|---|---|
committer | Lipu Fei <lipu.fei815@gmail.com> | 2017-09-04 16:39:10 +0300 |
commit | e9551d2173f7e3cc3d7cf565e3bad73a7c89b86c (patch) | |
tree | f3f88a5d1eb08dff79ddbc5ca7a50c2767dc3b4a /plugins/VersionUpgrade/VersionUpgrade27to30/__init__.py | |
parent | a67a0f161b5ea402c4c5d74badc4c74d421e461c (diff) |
Add upgrade script for 2.7 to 3.0
CURA-4270
Changes for the Skin Pre-shrink settings requires upgrade.
Diffstat (limited to 'plugins/VersionUpgrade/VersionUpgrade27to30/__init__.py')
-rw-r--r-- | plugins/VersionUpgrade/VersionUpgrade27to30/__init__.py | 35 |
1 files changed, 34 insertions, 1 deletions
diff --git a/plugins/VersionUpgrade/VersionUpgrade27to30/__init__.py b/plugins/VersionUpgrade/VersionUpgrade27to30/__init__.py index 73e1246360..ece6cb83f2 100644 --- a/plugins/VersionUpgrade/VersionUpgrade27to30/__init__.py +++ b/plugins/VersionUpgrade/VersionUpgrade27to30/__init__.py @@ -9,13 +9,46 @@ def getMetaData(): return { "version_upgrade": { # From To Upgrade function - ("preferences", 4000002): ("preferences", 5000002, upgrade.upgradePreferences), + ("preferences", 4000002): ("preferences", 5000003, upgrade.upgradePreferences), + + ("machine_stack", 3000002): ("machine_stack", 3000003, upgrade.upgradeStack), + ("extruder_train", 3000002): ("extruder_train", 3000003, upgrade.upgradeStack), + + ("quality_changes", 2000002): ("quality_changes", 2000003, upgrade.upgradeOtherContainer), + ("user", 2000002): ("user", 2000003, upgrade.upgradeOtherContainer), + ("quality", 2000002): ("quality", 2000003, upgrade.upgradeOtherContainer), + ("definition_changes", 2000002): ("definition_changes", 2000003, upgrade.upgradeOtherContainer), + ("variant", 2000002): ("variant", 2000003, upgrade.upgradeOtherContainer) }, "sources": { "preferences": { "get_version": upgrade.getCfgVersion, "location": {"."} }, + "machine_stack": { + "get_version": upgrade.getCfgVersion, + "location": {"./machine_instances"} + }, + "extruder_train": { + "get_version": upgrade.getCfgVersion, + "location": {"./extruders"} + }, + "quality_changes": { + "get_version": upgrade.getCfgVersion, + "location": {"./quality"} + }, + "user": { + "get_version": upgrade.getCfgVersion, + "location": {"./user"} + }, + "definition_changes": { + "get_version": upgrade.getCfgVersion, + "location": {"./definition_changes"} + }, + "variant": { + "get_version": upgrade.getCfgVersion, + "location": {"./variants"} + } } } |