Auto Upgrade in DXP 7.3 and Above

Issue

Starting from Liferay 7.3, new upgrades for modules won't run automatically on startup by default.

Resolution

The following options are available to run the upgrades we may include in fix/service packs:

  • Recover the old behavior with the property upgrade.database.auto.run set to true (not recommended in production environments). This property is more complete than the previous autoUpgrade in com.liferay.portal.upgrade.internal.configuration.ReleaseManagerConfiguration.config since it covers the Core upgrades too. More information in breaking changes.
  • Run the upgrade tool
  • Run the upgrades using the Gogo Shell

There are a few exceptions that need to be considered:

  • Upgrades to initialize new service builder modules always run automatically.
  • For development environments, the property upgrade.database.auto.run in portal-developer.properties is set to true by default

Please note that fix packs can only contain micro schema version changes which are optional, so you will only be required to run upgrades when installing service packs that contain minor upgrade processes, using one of the options discussed above. Complete instructions will be published in Help Center when releasing fix/service packs.

Additional Information

This decision was made to unify the behavior between modules and Core and to let users decide when to run upgrade processes.

If you need additional assistance regarding these points, please contact Liferay Support.

Este artigo foi útil?
Utilizadores que acharam útil: 1 de 2