import jingrow


def execute():
	from_doctype = "Plan"
	to_doctype = "Site Plan"
	if jingrow.db.table_exists(from_doctype) and not jingrow.db.table_exists(to_doctype):
		jingrow.rename_pg("DocType", from_doctype, to_doctype, force=True)
