[comment] [minor] added patch to update

This commit is contained in:
Rushabh Mehta 2013-11-22 12:22:41 +05:30
parent 79c4d7c662
commit bc7358a12e
2 changed files with 9 additions and 0 deletions

View File

@ -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()

View File

@ -250,4 +250,5 @@ patch_list = [
"execute:webnotes.reload_doc('website', 'doctype', 'website_sitemap') #2013-11-20", "execute:webnotes.reload_doc('website', 'doctype', 'website_sitemap') #2013-11-20",
"execute:webnotes.bean('Style Settings').save() #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()", "execute:webnotes.get_module('website.doctype.website_sitemap_config.website_sitemap_config').rebuild_website_sitemap_config()",
"patches.1311.p04_update_comments",
] ]