Skip to content

Instantly share code, notes, and snippets.

@mkorman
Created February 29, 2016 16:30
Show Gist options
  • Select an option

  • Save mkorman/6441b5cc238b2f34f407 to your computer and use it in GitHub Desktop.

Select an option

Save mkorman/6441b5cc238b2f34f407 to your computer and use it in GitHub Desktop.
public class Feature13Installer implements InstallHandler {
global void onInstall (InstallContext context)
{
if (context.previousVersion() == null)
{
InitializePackage();
}
else if (context.previousVersion().CompareTo(new Version (1,3)) < 0)
{
UpgradeForFeature13();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment