Class AbstractDropNotNullDataMigration
- java.lang.Object
-
- com.xpn.xwiki.store.migration.hibernate.AbstractHibernateDataMigration
-
- com.xpn.xwiki.store.migration.hibernate.AbstractDropNotNullDataMigration
-
- All Implemented Interfaces:
DataMigration
,HibernateDataMigration
- Direct Known Subclasses:
R911000XWIKI14889DataMigration
,R911001XWIKI14895DataMigration
public abstract class AbstractDropNotNullDataMigration extends AbstractHibernateDataMigration
Remove a non-null constraint from a colomn.- Since:
- 9.11RC1
- Version:
- $Id: 168d21fc9975581554d5c9968b9de32734c5a6ff $
-
-
Field Summary
-
Fields inherited from class com.xpn.xwiki.store.migration.hibernate.AbstractHibernateDataMigration
componentManager, manager
-
-
Constructor Summary
Constructors Constructor Description AbstractDropNotNullDataMigration(Class<?> table, String property)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getLiquibaseChangeLog()
protected void
hibernateMigrate()
Execute the migration itself.-
Methods inherited from class com.xpn.xwiki.store.migration.hibernate.AbstractHibernateDataMigration
getCurrentDBVersion, getName, getPreHibernateLiquibaseChangeLog, getStore, getXWikiContext, migrate, shouldExecute
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.xpn.xwiki.store.migration.DataMigration
getDescription, getVersion
-
-
-
-
Method Detail
-
getLiquibaseChangeLog
public String getLiquibaseChangeLog() throws DataMigrationException
- Specified by:
getLiquibaseChangeLog
in interfaceHibernateDataMigration
- Overrides:
getLiquibaseChangeLog
in classAbstractHibernateDataMigration
- Returns:
- some liquibase changelogs for refactoring the database after the hibernate schema update has been processed
- Throws:
DataMigrationException
- on error
-
hibernateMigrate
protected 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.
-
-