Class R43000XWIKI6691DataMigration
- java.lang.Object
-
- com.xpn.xwiki.store.migration.hibernate.AbstractHibernateDataMigration
-
- com.xpn.xwiki.store.migration.hibernate.R43000XWIKI6691DataMigration
-
- All Implemented Interfaces:
DataMigration
,HibernateDataMigration
@Component @Named("R43000XWIKI6691") @Singleton public class R43000XWIKI6691DataMigration extends AbstractHibernateDataMigration
Migration for XWIKI-6691: Reduce the size of the ASE_REQUESTID column to 48-chars.- Since:
- 4.3M1
- Version:
- $Id: 2ce1c5838095b7c3e28e719e863377f021cc3e83 $
-
-
Field Summary
-
Fields inherited from class com.xpn.xwiki.store.migration.hibernate.AbstractHibernateDataMigration
componentManager, manager
-
-
Constructor Summary
Constructors Constructor Description R43000XWIKI6691DataMigration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDescription()
String
getPreHibernateLiquibaseChangeLog()
XWikiDBVersion
getVersion()
void
hibernateMigrate()
Execute the migration itself.-
Methods inherited from class com.xpn.xwiki.store.migration.hibernate.AbstractHibernateDataMigration
getCurrentDBVersion, getLiquibaseChangeLog, getName, 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.
-
getPreHibernateLiquibaseChangeLog
public String getPreHibernateLiquibaseChangeLog() throws DataMigrationException
- Specified by:
getPreHibernateLiquibaseChangeLog
in interfaceHibernateDataMigration
- Overrides:
getPreHibernateLiquibaseChangeLog
in classAbstractHibernateDataMigration
- Returns:
- some liquibase changelogs for refactoring the database before the hibernate schema update is processed
- Throws:
DataMigrationException
- on error
-
-