Skip to content

How to Migrate to AutoPatch 1.3

scottfromsf edited this page Nov 12, 2011 · 2 revisions

AutoPatch 1.3 completely supports all previous versions of AutoPatch.

In AutoPatch 1.2 you were required to change the implementation from MigrationTask to RollbackableMigrationTask, in AutoPatch 1.3 you are no longer required to do so, MigrationTask is back to be used.

The migration.properties file added a new property called migration.strategy, that is used to define the MigrationRunnerStrategy to be used when migrating patches. Currently there are two out of the box strategies: ordered (com.tacitknowledge.util.migration.OrderedMigrationRunnerStrategy) and missing patches (com.tacitknowledge.util.migration.MissingPatchMigrationRunnerStrategy).

The strategy by default is ordered which behaves as if you were using AutoPatch in its previous versions, if you want to specify to work with another strategy, you need to provide the full classname of the strategy implementation to use.