Class R7350XWIKI2079DataMigration
- java.lang.Object
-
- com.xpn.xwiki.store.migration.hibernate.AbstractHibernateDataMigration
-
- com.xpn.xwiki.store.migration.hibernate.R7350XWIKI2079DataMigration
-
- All Implemented Interfaces:
DataMigration
,HibernateDataMigration
@Component @Named("R7345XWIKI2079") @Singleton public class R7350XWIKI2079DataMigration extends AbstractHibernateDataMigration
Migration for XWIKI2079: When migrating the document archive format from 1.0 or before to 1.2, delete the old XWD_ARCHIVE field, as it will prevent saving documents, since that column used to have a NOT NULL constraint. Also, Hibernate does not delete columns/tables that don't appear in the mapping file, so the column must be manually dropped.- Since:
- 1.3M2, 1.2.2
- Version:
- $Id: 38b4c98f2c951152fa7db3039ee330af596bf4a1 $
-
-
Field Summary
-
Fields inherited from class com.xpn.xwiki.store.migration.hibernate.AbstractHibernateDataMigration
componentManager, manager
-
-
Constructor Summary
Constructors Constructor Description R7350XWIKI2079DataMigration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDescription()
XWikiDBVersion
getVersion()
void
hibernateMigrate()
Execute the migration itself.-
Methods inherited from class com.xpn.xwiki.store.migration.hibernate.AbstractHibernateDataMigration
getCurrentDBVersion, getLiquibaseChangeLog, getName, getPreHibernateLiquibaseChangeLog, getStore, getXWikiContext, migrate, shouldExecute
-
-
-
-
Method Detail
-
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).
-
hibernateMigrate
public void hibernateMigrate() throws DataMigrationException, XWikiException
Description copied from class:AbstractHibernateDataMigration
Execute the migration itself.- Specified by:
hibernateMigrate
in classAbstractHibernateDataMigration
- Throws:
DataMigrationException
- on migration error.XWikiException
- on error from the store.
-
-