Class DataMigration7
java.lang.Object
org.sgrewritten.stargate.migration.DataMigration
org.sgrewritten.stargate.migration.DataMigration7
A data migrator to upgrade data and config to the 1.0.14 alpha
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Gets the configuration version this modifier will update the configuration togetNewConfigPair
(TwoTuple<String, Object> oldPair) Gets the new key-value pair corresponding to the old key-value pairvoid
run
(@NotNull SQLDatabaseAPI database, StargateAPI stargateAPI) Runs this configuration modifierMethods inherited from class org.sgrewritten.stargate.migration.DataMigration
getUpdatedConfigValues, willPopulateRegistry
-
Constructor Details
-
DataMigration7
public DataMigration7()
-
-
Method Details
-
run
Description copied from class:DataMigration
Runs this configuration modifierThis 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 classDataMigration
-
getConfigVersion
public int getConfigVersion()Description copied from class:DataMigration
Gets the configuration version this modifier will update the configuration to- Specified by:
getConfigVersion
in classDataMigration
- Returns:
The configuration version of this modifier
-
getNewConfigPair
Description copied from class:DataMigration
Gets the new key-value pair corresponding to the old key-value pairThis basically gets the updated config key and updates the value if necessary
- Specified by:
getNewConfigPair
in classDataMigration
- Parameters:
oldPair
-The old key-value pair
- Returns:
The new and updated key-value pair
-
getVersionFrom
- Specified by:
getVersionFrom
in classDataMigration
- Returns:
The version this migrator is migrating from
-
getVersionTo
- Specified by:
getVersionTo
in classDataMigration
- Returns:
The version this migrator is migrating to
-