|
Since Singlefront is fully customizable, upgrading from one version to the next will require updates to the database schema and source code. Here we will outline just one strategy that you can use to upgrade your application.
Basic Concepts
Step 1: Back Up your Database and Source Code
This is the most important step. Znode is not responsible for any loss of data or code. When backing up your database we suggest using the Backup function that is built into the SQL Server Management studio rather than copying the database MDF files.
Step 2: Upgrade the Database
Step 3: Separate out Your Code Changes
You can use a tool like to create a zip file containing only the changes you have made to the storefront. Let's assume in this example that we will be upgrading the code from Version 5.0.0 to Version 5.2.1.
| • | Create a fresh install of Singlefront from the version you based your current code on. In our example you will use the MSI installer to create a clean Version 5.0.0 installation on your development system. |
| • | If you applied any Znode supplied patches to your current web site then also apply them to the clean v5.0.0 installation as well. |
| • | Use WinMerge to compare your current web site source code with the v5.0.0 clean install. For this example make your current web site the first directory to compare and the clean v5.0.0 directory as the second to compare. This will show your code on the left pane and the clean v5.0.0 install in the right pane. |
| • | In general you will want to filter out any files that do not have the aspx, ascx, asax, master or cs file extension. You can also right click on any files that you know should not be migrated and choose "Hide Items". You should be left with only the files that you have changed. |
| • | From the Edit menu in WinMerge choose "Select All". |
| • | Right click on the selected files and choose the "Zip" menu and then select "Left". This will package up only the files that you have changed into a Zip file with their directory structure intact. |
Step 4: Create a New Web Site
Now it is time to create a new web site based on the latest version of the code.
| • | Use the MSIs from the latest version of the code to create a clean installation on your local development system. |
| • | Start up the demo store on your new installation to be sure that it is working correctly. |
| • | Restore your upgraded database from Step 2 over your new development database and test the storefront again. This will confirm that your database upgrade is correct. |
Step 5: Merge in Your Code Changes
Now that you have the latest storefront working with your data, it is time to move over any specific template or code changes that you have made.
| • | Unzip the file that you created in Step 3 to an empty directory. |
| • | Use WinMerge to compare this new directory with the upgraded development directory created in Step 4. For this example select your Zip file directory first and your v5.2.1 directory second. |
See Also:
|