func (r *StateRestore) JobVersionRestore(version *structs.Job) error {
	if err := r.txn.Insert("job_version", version); err != nil {
		return fmt.Errorf("job version insert failed: %v", err)
	}
	return nil
}
// JobVersionRestore is used to restore a job version
JobVersionRestore is used to restore a job version
// JobVersionRestore is used to restore a job version
func (r *StateRestore) JobVersionRestore(version *structs.Job) error {
	if err := r.txn.Insert("job_version", version); err != nil {
		return fmt.Errorf("job version insert failed: %v", err)
	}
	return nil
}
func ( r * StateRestore ) JobVersionRestore ( version * structs . Job ) error { if err := r . txn . Insert ( " " , version ) ; err != nil { return fmt . Errorf ( " " , err ) } return nil }
JobVersionRestore is used to restore a job version
JobVersionRestore is used to restore a job version