# Copyright (c) 2020, Frappe and Contributors
# License: GNU General Public License v3. See license.txt

from __future__ import unicode_literals

import frappe


def execute():
	if frappe.db.exists('DocType', 'Issue'):
		frappe.reload_doc("support", "doctype", "issue")
		rename_status()

def rename_status():
	frappe.db.sql("""
		UPDATE
			`tabIssue`
		SET
			status = 'On Hold'
		WHERE
			status = 'Hold'
	""")
