Class DatabaseVersion

java.lang.Object
edu.suffolk.litlab.efsp.db.DatabaseVersion

public class DatabaseVersion extends Object
Updates all of the collective tables for a consistent "schema". Since this class should work going back to extremely old versions of the code, this class should be completely self contained, only using SQL queries from here.

To add a new version:

  1. Increment CURRENT_VERSION
  2. Add an else-if to the end of updateDatabase() for the new version.
  3. Write your actual upgrade function (upgradeFromYYToZZ()).
Author:
brycew