Class R6405XWIKI1933DataMigration
- java.lang.Object
-
- com.xpn.xwiki.store.migration.hibernate.AbstractHibernateDataMigration
-
- com.xpn.xwiki.store.migration.hibernate.R4340XWIKI883DataMigration
-
- com.xpn.xwiki.store.migration.hibernate.R6405XWIKI1933DataMigration
-
- All Implemented Interfaces:
DataMigration
,HibernateDataMigration
@Component @Named("R6405XWIKI1933") @Singleton public class R6405XWIKI1933DataMigration extends R4340XWIKI883DataMigration
Migration for XWIKI1933: Editing users fails. Note: This data migration should only be executed if the R4340XWIKI833 one has already been executed during a previous migration (i.e. if the database is in version >= 4340). This is because it fixes a bug that cause the previous data migration to have only been executed in the main wiki, and there was some code that inserted wrong data after the migration.- Version:
- $Id: 3d39d736e1470efeaf236229cb1a8aa2bc7d4d9e $
-
-
Field Summary
-
Fields inherited from class com.xpn.xwiki.store.migration.hibernate.AbstractHibernateDataMigration
componentManager, manager
-
-
Constructor Summary
Constructors Constructor Description R6405XWIKI1933DataMigration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDescription()
XWikiDBVersion
getVersion()
boolean
shouldExecute(XWikiDBVersion startupVersion)
-
Methods inherited from class com.xpn.xwiki.store.migration.hibernate.R4340XWIKI883DataMigration
hibernateMigrate
-
Methods inherited from class com.xpn.xwiki.store.migration.hibernate.AbstractHibernateDataMigration
getCurrentDBVersion, getLiquibaseChangeLog, getName, getPreHibernateLiquibaseChangeLog, getStore, getXWikiContext, migrate
-
-
-
-
Method Detail
-
getDescription
public String getDescription()
- Specified by:
getDescription
in interfaceDataMigration
- Overrides:
getDescription
in classR4340XWIKI883DataMigration
- Returns:
- a description of what the data migration does
-
getVersion
public XWikiDBVersion getVersion()
- Specified by:
getVersion
in interfaceDataMigration
- Overrides:
getVersion
in classR4340XWIKI883DataMigration
- Returns:
- data version which need migration. before you commit stuff which needs migration, you need write data migration with version = current release number (i.e 32000 for release 3.2).
-
shouldExecute
public boolean shouldExecute(XWikiDBVersion startupVersion)
- Specified by:
shouldExecute
in interfaceDataMigration
- Overrides:
shouldExecute
in classAbstractHibernateDataMigration
- Parameters:
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.- Returns:
- true if the migration should be executed or false otherwise
-
-