corda / com.r3.corda.networkmanage.common.migration / MigrationManager

MigrationManager

class MigrationManager

Manages the migration status.

Constructors

<init>

MigrationManager(type: <ERROR CLASS>, database: <ERROR CLASS>, ctx: <ERROR CLASS>)

Manages the migration status.

Properties

ctx

val ctx: <ERROR CLASS>

Functions

validate

fun validate(ignoreAndUpdateVersion: Boolean): Unit

Validates the current migration version. If the version current migration version is different then the one stored in the database, it either updates the database version to the current one (ignoreAndUpdateVersion == true) or throws the MigrationException (ignoreAndUpdateVersion == false).