public class AppMigrationUtil extends Object
Provides utility code for implementing App migrations.
Modifier and Type | Method and Description |
---|---|
static boolean |
skipLegacyMigration(AppContent appContent,
String patchId)
Checks whether a legacy migration with the given patch ID should be skipped.
|
public static boolean skipLegacyMigration(AppContent appContent, String patchId)
Checks whether a legacy migration with the given patch ID should be skipped.
Before the introduction of the App format version, App patches would update a variable in the App when the patch was applied or when a new App was created in a system that already implemented the patch. On import this variable could be checked to see whether the App was already applied.
With the introduction of the format version we don’t need to update the variable as the App will have a format version if it is exported again, so we can just check for this. We just need to check the variable if there is no format version, as the App may need to be patched in that case.
appContent
- the incoming App contentpatchId
- the legacy App patch IDtrue
if the migration can be skippedCopyright © 2010 - 2019 edorasware ag. All Rights Reserved.