Bug #3376
closed
Add DB upgrade/install functionality to java code
Added by Michael Daigle over 16 years ago.
Updated over 16 years ago.
Description
Add the ability for db upgrade scripts to be run from within java. This will allow control of the db upgrade from within the configuration utility, but still allow the user to run the scripts from the command line if necessary.
The database upgrade functionality was added. The page is managed by database-configuration.jsp and DBAdmin.java. DBVersion and MetaCatVersion classes were added to manage database and application version. The system compares the database schema version to the application version. It then applies the appropriate scripts to bring the database up to date.
The database scripts are configured on a per-version basis in metacat.properties in the database.upgradeVersion section.
Original Bugzilla ID was 3376
Also available in: Atom
PDF