Upgrade the platform

The steps is the same for all types of releases - major, minor or service release.

Convert your solution to NuGet

Before starting ensure you have converted your solution to use Litium NuGet packages. If not, convert to NuGet now.

Update packages

  1. Open the Manage NuGet packages for Solution from Tools > NuGet Package Manager menu.
  2. Select the Update tab and mark the Include prerelease checkbox to include pre-release version or untick for fully released versions.
  3. Search for Litium
  4. Select all and press Update

Update database

Updating the database is done with sql scripts. 

Automated

The package contains an update script to upgrade the current configurated database for the Litium installation.

  1. Open the Package Manager Console from Tools > NuGet Package Manager menu.
  2. Select web application project as default project.
  3. Execute the following command
    Update-LitiumDatabase
    
    The script will print out the path for the scripts if they need for some other database.

Manual

The sql script is bundled inside the Litium.Setup.Core package. You find it in the Packages folder beside the solution file.

Script to execute is the following

  1. Tools\Upgrade_PreRequires.sql - check the database's minimum requirements
  2. Tools\UpgradeToLatest.sql - upgrade script

Update to Litium 5 from Litium 5 pre-release

  1. Open the Package Manager Console from Tools > NuGet Package Manager menu.
  2. Select web application project as default project.
  3. Execute the following commands
    Uninstall-Package Litium.PreReq.ThirdParty.Abstractions -Force -ErrorAction SilentlyContinue
    Uninstall-Package Litium.PreReq.ThirdParty.Application -Force -ErrorAction SilentlyContinue
    
  4. Continue with the steps under Update packages
Is this page helpful?
Thank you for your feedback!