Once your application is being used by customers, you'll want to make sure that you are keeping it up to date, adding new features, and addressing issues. To deploy new features to your customers, you'll have to publish new versions of your application. Sometimes, you'll going to need to perform an upgrade to the data when moving from one version to another.
This recipe will show you how to add logic to your application that will be executed when the application gets upgraded.