patch for updating temporary account type
diff --git a/erpnext/patches.txt b/erpnext/patches.txt
index 042bbde..4acb6dc 100644
--- a/erpnext/patches.txt
+++ b/erpnext/patches.txt
@@ -145,3 +145,4 @@
 erpnext.patches.v4_2.fix_recurring_orders
 erpnext.patches.v4_2.delete_gl_entries_for_cancelled_invoices
 erpnext.patches.v5_0.project_costing
+erpnext.patches.v5_0.update_temporary_account
\ No newline at end of file
diff --git a/erpnext/patches/v5_0/update_temporary_account.py b/erpnext/patches/v5_0/update_temporary_account.py
new file mode 100644
index 0000000..078c871
--- /dev/null
+++ b/erpnext/patches/v5_0/update_temporary_account.py
@@ -0,0 +1,9 @@
+# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
+# License: GNU General Public License v3. See license.txt
+
+from __future__ import unicode_literals
+import frappe
+
+def execute():
+	frappe.db.sql("""Update `tabAccount` set account_type = 'Temporary' 
+		where account_name in ('Temporary Assets', 'Temporary Liabilities', 'Temporary Opening')""")
\ No newline at end of file