SQLDatabaseMigrator

The SQL Database Migrator provides simple methods for migrating tables.

The default provider is the T-DataBaseAPI library, but you can implement this adapter.

T-DataBaseAPI - https://github.com/timsixth/T-DataBasesAPI

SQLDatabaseMigrator methods:

void migrate(Migration migration); //Migrates one migration
void addMigration(Migration migration); //Adds migration to migrations to migrate

How to create your implementation of SQLDatabaseMigrator?

public class YourMigrator implements SQLDatabaseMigrator {

    @Override
    public void migrate(Migration migration) {
       
    }

    @Override
    public void addMigration(Migration migration) {
        
    }
}

Last updated