Last active
February 29, 2016 16:52
-
-
Save mkorman/0859b99f0998cdc93e42 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Feature12Installer implements InstallHandler { | |
global void onInstall (InstallContext context) | |
{ | |
// Migrate data, but only for versions older than 1.2 | |
if (context.previousVersion != null && context.previousVersion().CompareTo(new Version (1,2)) < 0) | |
{ | |
UpgradeForFeature12(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment