Class DatabaseSchemaUpdate

java.lang.Object
me.block2block.hubparkour.api.db.DatabaseSchemaUpdate

public abstract class DatabaseSchemaUpdate extends Object
A database schema. The only function of schema classes are to execute SQL commands to update from one schema to another. Does not contain the whole schema.
  • Constructor Details

    • DatabaseSchemaUpdate

      public DatabaseSchemaUpdate(int id)
      Init the schema with the specified ID. Should go higher for newer versions.
      Parameters:
      id - the schema id
  • Method Details

    • execute

      public abstract void execute()
      Update the database to this schema.
    • getId

      public int getId()
      Get the id of the schema.
      Returns:
      the id of the schema.