com.xpn.xwiki.store.migration.hibernate
Class R6405XWIKI1933DataMigration

java.lang.Object
  extended by com.xpn.xwiki.store.migration.hibernate.AbstractHibernateDataMigration
      extended by com.xpn.xwiki.store.migration.hibernate.R4340XWIKI883DataMigration
          extended by com.xpn.xwiki.store.migration.hibernate.R6405XWIKI1933DataMigration
All Implemented Interfaces:
DataMigration, HibernateDataMigration

@Component
@Named(value="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: 095e2147281a94c8943cdcb40fc56ffde29a8c35 $

Field Summary
 
Fields inherited from class com.xpn.xwiki.store.migration.hibernate.AbstractHibernateDataMigration
componentManager
 
Constructor Summary
R6405XWIKI1933DataMigration()
           
 
Method Summary
 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
getLiquibaseChangeLog, getName, getPreHibernateLiquibaseChangeLog, getStore, getXWikiContext, migrate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

R6405XWIKI1933DataMigration

public R6405XWIKI1933DataMigration()
Method Detail

getDescription

public String getDescription()
Specified by:
getDescription in interface DataMigration
Overrides:
getDescription in class R4340XWIKI883DataMigration
Returns:
a description of what the data migration does

getVersion

public XWikiDBVersion getVersion()
Specified by:
getVersion in interface DataMigration
Overrides:
getVersion in class R4340XWIKI883DataMigration
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 interface DataMigration
Overrides:
shouldExecute in class AbstractHibernateDataMigration
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


Copyright © 2004–2014 XWiki. All rights reserved.