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


import jingrow


def execute():
	from_doctype = "Site History"
	to_doctype = "Site Activity"
	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)
