def _version_control(version):
 repo_path = get_migrate_repo_path()
 sql_connection = CONF.sql_connection
 if (version is None):
  version = versioning_repository.Repository(repo_path).latest
 return versioning_api.version_control(sql_connection, repo_path, version)

def _version_control ( version ) : repo_path = get_migrate_repo_path ( ) sql_connection = CONF . sql_connection if ( version is None ) : version = versioning_repository . Repository ( repo_path ) . latest return versioning_api . version_control ( sql_connection , repo_path , version )
place a database under migration control this will only set the specific version of a database .