com.xpn.xwiki.store.migration.hibernate
Class R42000XWIKI7726DataMigration
java.lang.Object
com.xpn.xwiki.store.migration.hibernate.AbstractHibernateDataMigration
com.xpn.xwiki.store.migration.hibernate.R42000XWIKI7726DataMigration
- All Implemented Interfaces:
- DataMigration, HibernateDataMigration
@Component
@Named(value="R42000XWIKI7726")
public class R42000XWIKI7726DataMigration
- extends AbstractHibernateDataMigration
Migration for XWIKI-7726: Unable to delete attachments larger than 10 mb using the jetty + hsql distribution. Early
versions of the HSQLDialect ignored the specified minimum length of LOB columns, creating them with the default
length of 16M. Thus, the precision of existing CLOB and BLOB columns must be manually extended to the required 1G.
- Since:
- 4.2M3
- Version:
- $Id: 723c0e7bb02474e39fb893d2217fb6ed963f1601 $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
R42000XWIKI7726DataMigration
public R42000XWIKI7726DataMigration()
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–2014 XWiki. All rights reserved.