com.xpn.xwiki.store.migration.hibernate
Class R6079XWIKI1878DataMigration
java.lang.Object
com.xpn.xwiki.store.migration.hibernate.AbstractHibernateDataMigration
com.xpn.xwiki.store.migration.hibernate.R6079XWIKI1878DataMigration
- All Implemented Interfaces:
- DataMigration, HibernateDataMigration
@Component
@Named(value="R6079XWIKI1878")
@Singleton
public class R6079XWIKI1878DataMigration
- extends AbstractHibernateDataMigration
Migration for XWIKI1878: Fix xwikircs table isdiff data not matching RCS state of some revisions (when the state
says "full" the isdiff column in the database should be false).
Note: This data migration should only be executed if the R4359XWIKI1459 one has already been executed (i.e. if the
database is in version >= 4360). This is because it fixes a bug in R4359XWIKI1459 which has now been fixed.
- Version:
- $Id: 8fd864f3fb63c413b2f1d4ec4d9b93841d3fb04f $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
R6079XWIKI1878DataMigration
public R6079XWIKI1878DataMigration()
getDescription
public String getDescription()
- Returns:
- a description of what the data migration does
getVersion
public XWikiDBVersion getVersion()
- 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
hibernateMigrate
public void hibernateMigrate()
throws DataMigrationException,
XWikiException
- Description copied from class:
AbstractHibernateDataMigration
- Execute the migration itself.
- Specified by:
hibernateMigrate
in class AbstractHibernateDataMigration
- Throws:
DataMigrationException
- on migration error.
XWikiException
- on error from the store.
Copyright © 2004-2013 XWiki. All Rights Reserved.