diff --git a/patches/1311/p04_update_comments.py b/patches/1311/p04_update_comments.py new file mode 100644 index 0000000000..aefb7e7b24 --- /dev/null +++ b/patches/1311/p04_update_comments.py @@ -0,0 +1,8 @@ +# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors +# License: GNU General Public License v3. See license.txt + +def execute(): + import webnotes + for name in webnotes.conn.sql_list("""select name from tabComment"""): + webnotes.get_obj("Comment", name).update_comment_in_doc() + \ No newline at end of file diff --git a/patches/patch_list.py b/patches/patch_list.py index f8faa44b9c..03e5a0efaf 100644 --- a/patches/patch_list.py +++ b/patches/patch_list.py @@ -250,4 +250,5 @@ patch_list = [ "execute:webnotes.reload_doc('website', 'doctype', 'website_sitemap') #2013-11-20", "execute:webnotes.bean('Style Settings').save() #2013-11-20", "execute:webnotes.get_module('website.doctype.website_sitemap_config.website_sitemap_config').rebuild_website_sitemap_config()", + "patches.1311.p04_update_comments", ] \ No newline at end of file