commit | 281dc5d639fb48aec0ab1007daf26defd586d30a | [log] [tgz] |
---|---|---|
author | Rushabh Mehta <rmehta@gmail.com> | Mon Feb 23 11:32:10 2015 +0530 |
committer | Rushabh Mehta <rmehta@gmail.com> | Mon Feb 23 14:43:15 2015 +0530 |
tree | 691ec2fd47919ef5220b17d354535f2f6b156597 | |
parent | d06c1188a06f159f2e24e3af59c2721c06e135cd [diff] |
[patch] added item patch
diff --git a/erpnext/patches/v5_0/item_patches.py b/erpnext/patches/v5_0/item_patches.py new file mode 100644 index 0000000..37992ad --- /dev/null +++ b/erpnext/patches/v5_0/item_patches.py
@@ -0,0 +1,5 @@ +import frappe + +def execute(): + frappe.db.sql("update `tabItem` set end_of_life='2099-12-31' where ifnull(end_of_life, '0000-00-00')='0000-00-00'") + frappe.db.sql("update `tabItem` set website_image = image where ifnull(website_image, '') = 'attach_files:'")