When deploying new artifacts, regardless of whether you are upgrading the entire LSPS stack, your modules, make sure that the version of the LSPS system database corresponds to the LSPS version your application and modules are created in: If you migrated the LSPS system database to a particular version of LSPS, then your modules and potentially your business database schema with your data should be migrated to the same version.
The resources for the migration should be provided along with the updated application EAR or modules. For information on the resources, refer to developer documentation.
Required artifacts:
To update modules on your LSPS Server:
Important: Model update can be very complex. Prepare the model update resources beforehand and test it properly.
Required artifacts:
Provided the new LSPS Application has been created in the same minor version of PDS, for example 3.3, it is enough to deploy the new LSPS Application EAR to the application server. Otherwise, refer to Upgrading LSPS.
Required artifacts:
When upgrading your LSPS, you will need to upgrade the entire stack:
Important: Make sure to test the upgrade in a testing environment that is identical to the production environment and back up your database before you perform any changes on production.
To upgrade to a newer LSPS version, do the following:
When upgrading your LSPS application, you will need to upgrade the LSPS system database.
Important: Make sure to back up the database and test the migration process in a testing environment that is identical to the production environment before you perform any changes on production.
To upgrade the LSPS system database to correspond to a newer LSPS version, run the migration script:
LSPS_SCHEMA_VERSION
table, run the migration script with the databaseUrl and databaseType parameter: the script will migrate your current database to the database version of the Runtime Suite. Get current database version: open <YOUR_OLD_RUNTIME_SUITE>/db-migration/lsps-db-migration-<VERSION>.jar
> db > migration:
Your current version is the higher version (in the example case, it is 3.1.0.010).
Run the migration script with the initialVersion parameter set to the current version of the LSPS database:
First database migration with the user eko and password mypasswd$'`"
The database migration script accepts the following parameters with the respective value entered after a colon:
URI of the database with LSPS runtime data
Note: For SQL databases, the instance property is supported: add the instance to the url as
instance=<name>
, for example,./migrate.sh databaseType:SQLSERVER databaseUrl:jdbc:sqlserver://localhost/lsps;instance=whitestein
.
type of the database (The migration tool attempts to identify the database type automatically from the databaseUrl parameter. However, if necessary, you can define the database type explicitly. The possible values are H2
, DB2
, ORACLE
, SQLSERVER
, MYSQL
.
The current version of LSPS database: it corresponds to the LSPS that created the database. The parameter is required if the database is being migrated for the first time: On the first migration, the underlying tooling creates a database table with information on the previous and current schema version. Next migrations use this data to identify the initial database version so that the parameter is no longer required.
The parameter is optional. If undefined, the database is migrated to the Runtime Suite database version.
When running the DB migration tool from the command line, make sure to escape any special characters in parameter values as required by your operating system or shell. For example, if using Bash and a parameter contains characters like $ ` ' " and so on then these characters must be escaped: Read the manual to your command line to learn how to escape special characters.