public class Migrator extends Object
| Modifier and Type | Method and Description |
|---|---|
int |
getLatestVersion() |
List<org.bimserver.models.store.Migration> |
getMigrations() |
Schema |
migrate() |
Schema |
migrate(DatabaseSession session) |
Schema |
migrateSchemaTo(int targetVersion) |
Schema |
migrateSchemaToLatest() |
boolean |
migrationImpossible() |
boolean |
migrationRequired() |
public Migrator(Database database)
public Schema migrateSchemaTo(int targetVersion)
public int getLatestVersion()
public Schema migrateSchemaToLatest()
public Schema migrate() throws MigrationException, InconsistentModelsException
public List<org.bimserver.models.store.Migration> getMigrations()
public Schema migrate(DatabaseSession session) throws MigrationException, InconsistentModelsException
public boolean migrationRequired()
public boolean migrationImpossible()
Copyright © 2019 OpenSource BIM. All rights reserved.