Class DataMigration7

java.lang.Object
org.sgrewritten.stargate.migration.DataMigration
org.sgrewritten.stargate.migration.DataMigration7

public class DataMigration7 extends DataMigration
A data migrator to upgrade data and config to the 1.0.14 alpha
  • Constructor Details

    • DataMigration7

      public DataMigration7()
  • Method Details

    • run

      public void run(@NotNull @NotNull SQLDatabaseAPI database, StargateAPI stargateAPI)
      Description copied from class: DataMigration
      Runs this configuration modifier

      This may alter files such as portal and gate files to perform the appropriate changes necessary for compatibility. This does not modify the config file itself.

      Specified by:
      run in class DataMigration
    • getConfigVersion

      public int getConfigVersion()
      Description copied from class: DataMigration
      Gets the configuration version this modifier will update the configuration to
      Specified by:
      getConfigVersion in class DataMigration
      Returns:

      The configuration version of this modifier

    • getNewConfigPair

      protected TwoTuple<String,Object> getNewConfigPair(TwoTuple<String,Object> oldPair)
      Description copied from class: DataMigration
      Gets the new key-value pair corresponding to the old key-value pair

      This basically gets the updated config key and updates the value if necessary

      Specified by:
      getNewConfigPair in class DataMigration
      Parameters:
      oldPair -

      The old key-value pair

      Returns:

      The new and updated key-value pair

    • getVersionFrom

      public String getVersionFrom()
      Specified by:
      getVersionFrom in class DataMigration
      Returns:

      The version this migrator is migrating from

    • getVersionTo

      public String getVersionTo()
      Specified by:
      getVersionTo in class DataMigration
      Returns:

      The version this migrator is migrating to