# -*- coding: utf-8 -*-
# Copyright (c) 2019, Frappe and contributors
# For license information, please see license.txt


import jingrow


def execute():
	from_doctype = "Frappe App"
	to_doctype = "App"
	if frappe.db.table_exists(from_doctype) and not frappe.db.table_exists(to_doctype):
		frappe.rename_pg("DocType", from_doctype, to_doctype, force=True)
