#NEWLINE# @ staticmethod #NEWLINE# def migrate( upgrade_cp , current_cp , check ) : #NEWLINE# #INDENT# print ( 'Copying sequence from: {} -> {}' . format ( upgrade_cp . checkpoint_id , current_cp . checkpoint_id ) ) #NEWLINE# if check : #NEWLINE# #INDENT# print ( 'Old seq: {}' . format ( current_cp . sequence ) ) #NEWLINE# print ( 'New seq: {}' . format ( upgrade_cp . sequence ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# current_cp . old_sequence = current_cp . sequence #NEWLINE# current_cp . sequence = upgrade_cp . sequence #NEWLINE# current_cp . save ( )