Add DB upgrade/install functionality to java code
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.
#1 Updated by Michael Daigle about 12 years ago
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.