Upgrade Guide
This guide will help you upgrade your Corteza to the newest version in no time!
While there are internal safeguards in place that can prevent data loss or other kinds of disasters, make sure you backup your database before you do an upgrade. Refer to devops guide on backup procedure for details. |
If you are upgrading multiple versions at the same time; for example from 2019.12 to 2020.9; you should follow all the upgrade guides between the two versions. |
Recommended steps for Corteza upgrade
-
upgrade your staging environment, or
-
deploy a temporary environment with a copy of the production database and do a test upgrade there
-
changing image versions in your
docker-compose.yaml
(or.env
) file, -
pull new images from docker hub with
docker-compose pull
, -
recreate containers with
docker-compose up -d
.
Upgrading to 2020.12
Due to database schema changes it’s not possible to downgrade or revert your installation after upgrading to |
If you use Corteza REST API, please note that paging parameters on certain endpoints have changed. Refer to developers guide for details. |
After upgrade
Field expressions and automation scripts
With the introduction of field expressions, some Corredor automation scripts became obsolete and were removed from the 2020.12 release. This affects existing deployments that use CRM and Service Solution applications.
We did not want to make an automated upgrade and change your module fields on those applications (namespaces). It’s not possible to know what kind of changes you might have made in your modules.
Module | Field | Value expression | Sanitizer | Validators |
---|---|---|---|---|
Account |
BillingStreet |
|
||
Account |
BillingCity |
|
||
Account |
BillingState |
|
||
Account |
BillingPostalCode |
|
||
Account |
ShippingStreet |
|
||
Account |
ShippingCity |
|
||
Account |
ShippingState |
|
||
Account |
ShippingPostalCode |
|
||
Account |
GeneratedBillingAddress |
|
||
Account |
GeneratedShippingAddress |
|
||
Lead |
Street |
|
||
Lead |
City |
|
||
Lead |
State |
|
||
Lead |
PostalCode |
|
||
Lead |
GeneratedAddress |
|
||
Lead |
RecordLabel |
|
||
Quote |
Discount |
|
||
Quote |
Subtotal |
|
||
Quote |
Tax |
|
||
Quote |
TotalPrice |
|
||
Quote |
GrandTotal |
|
Upgrading to 2020.9
After upgrade
Corteza Service Cloud
Corteza 2020.9 renames Corteza Service Cloud to Corteza Service Solution. The new automation scripts are not compatible with the previous namespace.
-
Rename the Service Cloud namespace name to Corteza Service Solution
-
Change the service-cloud namespace slug to service-solution
-
Go over each page in the Corteza Service Solution namespace and replace the old service-cloud automation buttons with new service-solution buttons
-
Test your changes to assure everything works as expected :APP_NAME_SHELL: One :APP_NAME_AUTH: Auth :APP_NAME_ADMIN: Admin :APP_NAME_COMPOSE: Low Code :APP_NAME_MESSAGING: Messaging :APP_NAME_FEDERATION: Federation :APP_AUTOMATION: Corredor :PRODUCT_NAME: Corteza :DOMAIN: cortezaproject.org
Upgrading to 2020.3
After upgrade
Corredor scripts
Corteza 2020.3 introduces a new way of how automation scripts are stored, handled and executed. The code, configuration and triggers are no longer stored in the Corteza database, but are defined as JavaScript files on the filesystem and accessed directly by the Corteza Corredor server.
All pre-installed scripts for the CRM and ServiceCloud have already been migrated and are ready for use.
You will need to migrate any custom automation scripts manually. |
There are 2 available script-migrator
commands, one for system other one for Low Code service:
docker-compose exec server system script-migrator --dst
docker-compose exec server compose script-migrator --dst
These two commands will create a simple structure under <base-location>/<service>/custom
(system/custom/
and compose/custom/
) containing scripts from both services.
The script migrator tool directly exports the script’s source code and triggers without running any checks or tests. Make sure you test each script and trigger after the migration. |
Point script-migrator tool (base-location) to Corredor’s usr/server
directory.
This will create script source files (javascript) directly to the recommended location.
Script files names are created from the script names (with suffixing script ID in case of any duplicated). Migrator skips all deleted scripts, deleted triggers, scripts with "test" name or without any code.
If possible, module handle is used where a module is referenced (in Compose scripts). |