Class MigrateResult
java.lang.Object
com.codename1.migration.MigrateResult
What one
Migrator.migrate() call did.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe migrations that ran.The schema version before the run.intHow many migrations ran.The schema version after the run.What the run tolerated: a history newer than this build, for one.
-
Constructor Details
-
MigrateResult
public MigrateResult(String initialVersion, String targetVersion, List<String> applied, List<String> warnings) Creates a result. Built by the engine; an application reads these.- Parameters:
initialVersion- the schema version before the run, or null for an empty historytargetVersion- the schema version after it, or nullapplied- the script name of every migration that ran, in orderwarnings- things the run tolerated and the operator should know
-
-
Method Details
-
getInitialVersion
The schema version before the run.- Returns:
- the version, or null if nothing had been applied
-
getTargetVersion
The schema version after the run.- Returns:
- the version, or null if nothing versioned has been applied
-
getMigrationsExecuted
public int getMigrationsExecuted()How many migrations ran.- Returns:
- the count; 0 when the database was already current
-
getApplied
-
getWarnings
-