Interface DataMigration

    • Method Detail

      • getName

        String getName()
        Returns:
        the data migration hint. For example "R4340XWIKI883".
      • getDescription

        String getDescription()
        Returns:
        a description of what the data migration does
      • getVersion

        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

        boolean shouldExecute​(XWikiDBVersion startupVersion)
        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