<s> import frappe <EOL> from frappe . model . utils . rename_field import rename_field <EOL> from frappe . modules import scrub , get_doctype_module <EOL> rename_map = { <EOL> "<STR_LIT>" : [ <EOL> [ "<STR_LIT>" , "<STR_LIT>" ] <EOL> ] , <EOL> "<STR_LIT>" : [ <EOL> [ "<STR_LIT>" , "<STR_LIT>" ] <EOL> ] , <EOL> "<STR_LIT>" : [ <EOL> [ "<STR_LIT>" , "<STR_LIT>" ] <EOL> ] , <EOL> "<STR_LIT>" : [ <EOL> [ "<STR_LIT>" , "<STR_LIT>" ] , <EOL> [ "<STR_LIT>" , "<STR_LIT>" ] <EOL> ] <EOL> } <EOL> def execute ( ) : <EOL> frappe . reload_doc ( "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) <EOL> frappe . reload_doc ( "<STR_LIT:email>" , "<STR_LIT>" , "<STR_LIT>" ) <EOL> frappe . reload_doc ( "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) <EOL> frappe . reload_doc ( "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) <EOL> for dt , field_list in rename_map . items ( ) : <EOL> for field in field_list : <EOL> rename_field ( dt , field [ <NUM_LIT:0> ] , field [ <NUM_LIT:1> ] ) </s>
