Skip to content

Upgrade to release 3.3.0

Prerequisites

  1. Inform users about the upgrade: stop creating new deliveries, transactional support on CRUD models will be disallowed.
  2. Stop the i-refactory server.

Upgrading i-refactory metadata model

Follow the generic instructions for upgrading the metadata repository as described in Upgrading the i-refactory repository model in SQLServer.

Warning

New metadata tables which are created during this upgrade will be created in the default filegroup. Make sure the default filegroup is correctly set in your SQLServer session.

This upgrade script will:

Create the following database columns:

  • acm_uam_datadef.s_connection_properties.maxReservedEntityUpdates
  • acm_uam_datadel.s_delivery_agreement_properties.maxConcurrentEntityUpdates
  • acm_uam_datadel.s_delivery_agreement_properties.defaultConcurrentEntityUpdates
  • acm_uam_datadel.s_delivery_agreement_properties.maxReservedEntityUpdates
  • acm_uam_datadel.s_delivery_agreement_properties.defaultReservedEntityUpdates
  • acm_uam_datadel.s_delivery_properties.maxConcurrentEntityUpdates
  • acm_uam_datadel.s_delivery_properties.reservedEntityUpdates

The upgrade is executed within a transaction. An error will result in a rollback. Contact i-Refact support in case of unexpected failures.

Change the configuration file

The authorization server is now a separte service. You need to remove the authorization object and all it's properties from the configuration file.

This is an example object from the config file which should be removed:

"authorizationServer": {
        "enabled": true,
        "https": {
            "host": "i-refactory",
            "port": 3003,
            "key": "./crypto-internal/server.key",
            "cert": "./crypto-internal/server.crt"
        },
        "privateKey": "./crypto-internal/key_private.pem",
        "publicKey": "./crypto-internal/key_public.pem",
        "clients": [
            {
                "clientId": "i-refactory-ui",
                "clientSecret": null,
                "redirectUri": "https://localhost:3002",
                "grants": [
                    "authorization_code",
                    "refresh_token"
                ]
            },
            {
                "clientId": "exampleNonWebClient",
                "clientSecret": "12345",
                "grants": [
                    "client_credentials"
                ],
                "roles": [
                    "DataViewer",
                    "DataManager",
                    "DataOperator",
                    "Developer",
                    "SystemManager"
                ]
            }
        ],
        "users": [
            {
                "id": "info@i-refact.com",
                "username": "administrator",
                "password": "abcd123",
                "email": "info@i-refact.com",
                "roles": [
                    "DataViewer",
                    "SystemManager",
                    "DataManager",
                    "DataOperator",
                    "Developer"
                ]
            },
            {
                "id": "consultant@i-refact.com",
                "username": "consultant",
                "password": "",
                "email": "consulant@i-refact.com",
                "roles": [
                    "DataViewer",
                    "SystemManager",
                    "DataManager",
                    "DataOperator",
                    "Developer"
                ]
            }
        ]
    }

Upgrade the i-refactory server

  1. Only upgrade if the metadata update in the previous section has been executed succesfully.
  2. Copy the complete folder i-refactory-engine to the appropriate location.
  3. Start the nodeJs server, the upgrade will be executed automatically.

Changes applied during startup

During the startup of the i-refactory server the following changes will be applied automatically:

  1. The application version is updated to release 3.3.0.
  2. The i-refactory generic data access interface objects are regenerated (views, procedures, triggers, ...).