Package org.cyclos.db

Class DatabaseUpgrade


  • public class DatabaseUpgrade
    extends Object
    This is an executable class which upgrades the Cyclos database to the current version
    • Method Detail

      • getCurrentApplicationVersion

        public String getCurrentApplicationVersion()
        Returns the current application version
      • getCurrentDbVersion

        public int getCurrentDbVersion()
        Returns the current database version
      • removeStalePermissions

        public void removeStalePermissions()
                                    throws SQLException
        Removes any stale permissions from the database
        Throws:
        SQLException
      • upgrade

        public void upgrade()
                     throws SQLException
        Upgrade the current database to the latest version
        Throws:
        SQLException