patch fix: published on should be date of creation

This commit is contained in:
Anand Doshi 2013-03-12 10:44:35 +05:30
parent a012fdb54c
commit 9e4b1e6913

View File

@ -6,4 +6,4 @@ def execute():
webnotes.reload_doc('website', 'doctype', 'blog_post')
webnotes.conn.sql('''update tabBlogger set posts=(select count(*)
from `tabBlog Post` where ifnull(blogger,"")=tabBlogger.name)''')
webnotes.conn.sql("""update `tabBlog Post` set published_on=creation""")
webnotes.conn.sql("""update `tabBlog Post` set published_on=date(creation)""")