Upgrading and Migration
Instructions for upgrading the application and migrating the data to the new version.
One of the great features of ADempiere is that upgrades and migration to new releases are always free! The process of migration is relatively simple with the migration tools that have been added in release 3.8.0.
There are two main activities:
Upgrade your software; and
Migrate your database to ensure all the necessary fields and data are compatible with the software.
Caution! Back up your database (utils/RUN_DBExport) and make a copy of the contents of the application directory ($ADEMPIERE_HOME) before attempting to upgrade your system. The installation of the latest version of software may overwrite needed files so its best to have them all backed up. In production environments, stage the upgrade in a test environment first.
Software Upgrades
The software that drives the application is always being upgraded with fixes and new features. Keeping an implementation up-to-date helps the users benefit from the work of the community.
When upgrading the software, it is important that any customized code incorporated with the implementation works with the upgrade. If you are not sure, please contact the developers of your customization or ask for assistance. Developers should be able to provide you with all the elements of the upgrade, ensuring the main code, patches and customizations will all work together.
Upgrade to a New Release
Advise users that the software will be off-line during the upgrade. Shut down the application server.
Download from GitHub or generate from your development environment, the version of software you want to upgrade to. This will be in the form of a zip or tar file like "Release_380lts.zip".
Copy your ADEMPIERE_HOME directory or rename it. For example, from c:\adempiere to c:\adempiere_old.
If you are installing over top of the existing installation, you should, as a minimum, delete the contents of the following.
ADEMPIERE_HOME\migration (since 3.8.0)
ADEMPIERE_HOME\lib
ADEMPIERE_HOME\jboss
Extract the new ADempiere archive to the ADEMPIERE_ROOT directory (i.e. if ADEMPIERE_HOME is c:\adempiere, extract to c:\).
Apply Patches
Apply Customizations, Packages and other Files
If you have a customization.jar with customized code or a packages.jar file with supporting *.jar files, add them to the $ADEMPIERE_HOME\lib directory, overwriting the existing files.
Also, if you have other customized files, such as *.bat files, a CustomReport.war file, images, etc..., don't forget to add them to the new installation.
When all the files have been added, RUN_Setup (or RUN_SilentSetup if you kept the .properties files in $ADEMPIERE_HOME) to build the application.
Database Migration
Migration with XML or SQL Scripts
Once all the scripts are applied, you can start the application server and test the upgrade.
Last updated