Class R90000XWIKI13474DataMigration
- java.lang.Object
-
- com.xpn.xwiki.store.migration.hibernate.AbstractHibernateDataMigration
-
- com.xpn.xwiki.store.migration.hibernate.R90000XWIKI13474DataMigration
-
- All Implemented Interfaces:
DataMigration
,HibernateDataMigration
@Component @Named("R90000XWIKI13474") @Singleton public class R90000XWIKI13474DataMigration extends AbstractHibernateDataMigration
Migration for XWIKI-13474. Duplicate existing attachment size column into a new column supporting long values.- Since:
- 9.0RC1
- Version:
- $Id: b4e8968a9130241cb1099e9e61e1c1308c8b3867 $
-
-
Field Summary
-
Fields inherited from class com.xpn.xwiki.store.migration.hibernate.AbstractHibernateDataMigration
componentManager, manager
-
-
Constructor Summary
Constructors Constructor Description R90000XWIKI13474DataMigration()
-
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 XWikiException, DataMigrationException
Description copied from class:AbstractHibernateDataMigration
Execute the migration itself.- Specified by:
hibernateMigrate
in classAbstractHibernateDataMigration
- Throws:
XWikiException
- on error from the store.DataMigrationException
- on migration error.
-
-