record
fun record(session: OctaviusSessionOperations, migration: DiscoveredMigration, state: MigrationState, executionTimeMs: Long, checksum: Long? = migration.checksum): Long
Files a migration under the state it reached, and answers with the row's id.
Both paths come through here. A transactional migration calls it once, with MigrationState.SUCCESS, inside the transaction that ran the migration - so the row and the work it describes commit together or neither does. One running without a transaction calls it before it starts, with MigrationState.RUNNING, and then complete afterwards.
Parameters
checksum
What to record, which is the migration's own except for a class, where the number belongs to the instance and the instance is what the caller has.