private void UpdateCurrentVersion(MigrationPlanStep step)
{
if (!step.ShouldUpdateVersion) {
return;
}
if (step.Direction == Direction.Up) {
VersionRepository.InsertVersion(step.MigrationInfo);
}
else {
VersionRepository.RemoveVersion(step.MigrationInfo);
}
}