Earthworm Database Installation and Upgrade Procedure

Lucky Vidmar

May 5, 2003

Programmer Notes

We promised that all versions after v6.0 would be backward compatible. To help us keep this promise, there is now a new procedure for dealing with the schema directories.

Basically, all the table definitions that were present in v6.0 have been pulled into a single file (ewdb_create_base_tables.sql). In each schema subdirectory (e.g., alarms) there are two scripts which will be used to keep us backward compatible:

When the time comes for a release, all those ewdb_update_*_working.sql scripts will be renamed to ewdb_update_*_vx.x, and the working versions will be emptied, ready to start adding new stuff. We will then create a top-level upgrade script which will call all the underlying schema upgrade scripts. This will make it easier for the user to configure the installation/upgrade (see below).

The key thing to remember is NEVER to change anything in the base v6.0 table definitions in ewdb_create_base_tables.sql.
 
 
 
 

User Notes
 

As before, ewdb_create_database.sql is the main script used for installing or upgrading an earthworm database. The user first has to decide whether to install a brand new DB, or to upgrade from a previous v6.x version.


Questions? Issues? Subscribe to the Earthworm List (earthw).