Migration - Liinx/TimeTokens GitHub Wiki

When the plugin goes trough some major changes and the old structure is no longer applicable to the new one then you can use built it migration features to move your old settings and records to the new updated structure without losing the old records or need to set everything up again.
Follow the steps bellow on how to successfully migrate player data and settings.

Migration from 1.4.x to 2.x.x version

  1. Download latest version of the plugin.
  2. Replace the old jar with the new one.
  3. Start the server and it will do auto config migration(dont worry your settings will be preserved).
  4. After its finished migrating the config shutdown the server.
  5. Open config file set migration field to true (it is important that you do not change table-prefix field).
  6. Pick how do you want to handle duplicate values(if there are any) in the new database by putting one of the following options on the duplicate-record-response.
    • MERGE - will add old data to the existing duplicates.
    • REPLACE - will replace new duplicates with old ones.
    • SKIP - will skip duplicates.
  7. Pick if you wish to delete old database(MySQL setup only) by setting the delete-after-migration field to true.
  8. Save the config and start the server.
  9. That's it the plugin will handle everything from there.