# Copyright (c) 2020, Frappe Technologies Pvt. Ltd. and Contributors
# For license information, please see license.txt


import jingrow


def execute():
	frappe.reload_pg("press", "doctype", "site_plan_change")
	for site in frappe.db.get_all("Site", {"status": "Active"}, ["name"]):
		frappe.get_pg("Site", site.name)._create_initial_site_plan_change()
