public class XWikiDBVersion extends Object implements Comparable<XWikiDBVersion>
The version scheme in the past was to use the SVN revision number of the commit of the migrator but since we've now moved to Git we're now using an integer matching the current XWiki version and allowing for a range of 1000 migrations. So if you're writing the first migrator for version 5.2 of XWiki then the version will be 52000. If you're writing the 2nd migration for XWiki 5.2 then its version would be 52001, etc.
Constructor and Description |
---|
XWikiDBVersion()
Default constructor.
|
XWikiDBVersion(int version) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(XWikiDBVersion o) |
int |
getVersion() |
XWikiDBVersion |
increment() |
protected void |
setVersion(int version) |
String |
toString() |
public XWikiDBVersion()
public XWikiDBVersion(int version)
version
- - data versionpublic int getVersion()
protected void setVersion(int version)
version
- - data versionpublic int compareTo(XWikiDBVersion o)
compareTo
in interface Comparable<XWikiDBVersion>
public XWikiDBVersion increment()
Copyright © 2004–2022 XWiki. All rights reserved.