Class 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 $