old_contents: import frappe
  
  def execute():
  	if frappe.db.table_exists("Workflow Action") and not frappe.db.table_exists("Workflow Action Master"):
  		rename_doc('DocType', 'Workflow Action', 'Workflow Action Master')
  		frappe.reload_doc('workflow', 'doctype', 'workflow_action_master')
  
new_contents: import frappe
  from frappe.model.rename_doc import rename_doc
  
  
  def execute():
  	if frappe.db.table_exists("Workflow Action") and not frappe.db.table_exists("Workflow Action Master"):
  		rename_doc('DocType', 'Workflow Action', 'Workflow Action Master')
  		frappe.reload_doc('workflow', 'doctype', 'workflow_action_master')
  
subject: Update rename_workflow_action_to_workflow_action_master.py