@Role
public interface DataMigrationManager
Modifier and Type | Method and Description |
---|---|
void |
checkDatabase()
Check current database version and proceed to migrations.
|
DataMigrationStatus |
getDataMigrationStatus() |
XWikiDBVersion |
getDBVersion() |
XWikiDBVersion |
getLatestVersion() |
void |
initNewDB()
Setup the schema of a new DB and set it to the latest version (not running migrations).
|
XWikiDBVersion getDBVersion() throws DataMigrationException
DataMigrationException
- if any errorDataMigrationStatus getDataMigrationStatus() throws DataMigrationException
DataMigrationException
- if any errorvoid checkDatabase() throws MigrationRequiredException, DataMigrationException
MigrationRequiredException
- when version is incompatible with current versionDataMigrationException
- when an error occurs during check.XWikiDBVersion getLatestVersion()
void initNewDB() throws DataMigrationException
DataMigrationException
- if any errorCopyright © 2004–2022 XWiki. All rights reserved.