@Role
public interface DataMigration
Modifier and Type | Method and Description |
---|---|
String |
getDescription() |
String |
getName() |
XWikiDBVersion |
getVersion() |
void |
migrate()
Run migration.
|
boolean |
shouldExecute(XWikiDBVersion startupVersion) |
String getName()
String getDescription()
XWikiDBVersion getVersion()
void migrate() throws DataMigrationException
DataMigrationException
- if any errorboolean shouldExecute(XWikiDBVersion startupVersion)
startupVersion
- the database version when the migration process starts (before any dataMigration is
applied). This is useful for data migration which need to run only when the database is in a certain
version.Copyright © 2004–2017 XWiki. All rights reserved.