def hue1_to_hue2_data_migration():
 jd_list = JobDesign.objects.all()
 for jd in jd_list:
  if (jd.type == 'jar'):
   job_design_migration_for_jar(jd)
  elif (jd.type == 'streaming'):
   job_design_migration_for_streaming(jd)
  else:
   LOG.warn(("Unknown JobDesign type '%s' in the old table. Row id: %s" % (jd.type, jd.id)))

def hue1_to_hue2_data_migration ( ) : jd_list = JobDesign . objects . all ( ) for jd in jd_list : if ( jd . type == 'jar' ) : job_design_migration_for_jar ( jd ) elif ( jd . type == 'streaming' ) : job_design_migration_for_streaming ( jd ) else : LOG . warn ( ( "Unknown JobDesign type '%s' in the old table. Row id: %s" % ( jd . type , jd . id ) ) )
data migration from the jobdesign table to the new oozie-based models .