execute on_doctype_update
diff --git a/erpnext/patches.txt b/erpnext/patches.txt
index 615af13..032a37b 100644
--- a/erpnext/patches.txt
+++ b/erpnext/patches.txt
@@ -140,3 +140,4 @@
 erpnext.patches.v5_0.opportunity_not_submittable
 execute:frappe.permissions.reset_perms("Purchase Taxes and Charges Master") #2014-06-09
 execute:frappe.permissions.reset_perms("Expense Claim Type") #2014-06-19
+erpnext.patches.v5_0.execute_on_doctype_update
\ No newline at end of file
diff --git a/erpnext/patches/v5_0/execute_on_doctype_update.py b/erpnext/patches/v5_0/execute_on_doctype_update.py
new file mode 100644
index 0000000..4fc640e
--- /dev/null
+++ b/erpnext/patches/v5_0/execute_on_doctype_update.py
@@ -0,0 +1,8 @@
+# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
+# License: GNU General Public License v3. See license.txt
+
+import frappe
+
+def execute():
+	for dt in ("Stock Ledger Entry", "Communication", "Comment", "DefaultValue", "DocShare", "File Data", "ToDo", "Feed"):
+		frappe.get_doc("DocType", dt).run_module_method("on_doctype_update")
\ No newline at end of file