persistMigration method

Future<void> persistMigration(
  1. MigrationVersionArtifacts artifacts
)

Writes artifacts to disk and updates the version registry.

Implementation

Future<void> persistMigration(MigrationVersionArtifacts artifacts) async {
  var versions = await _artifactStore.listVersions();
  await _artifactStore.writeVersion(artifacts);
  versions.add(artifacts.version);
  await _artifactStore.writeVersionRegistry(versions);
}