ericgrandt / TotalEconomy

All in one economy plugin for Minecraft.
https://ericgrandt.github.io/TotalEconomy/
31 stars 33 forks source link

[4/X] Update feature/sql-refractor | Migrator concept & legacy migration #330

Closed MarkL4YG closed 5 years ago

MarkL4YG commented 5 years ago

This pull request includes:

Of course, since this is yet another update of the big thing, this code is not yet runnable.

The basic idea behind migrators

The MigrationManager determines which migrations to run based on the current schema version and whether or not the schema has already been initialized. This can be used for both the file and DB storage.
Migrators then - well - migrate the data to the latest version from whatever version currently is used.

Notes

MarkL4YG commented 5 years ago

Note to self: Rebase the sql-refractor onto develop branch after this has been merged and open another PR for that.

MarkL4YG commented 5 years ago

As suggested in private conversations, I'll be closing this PR. It will be replaced with a MVP implementation of the refactor.