renamed blog to blog_post and refresh issues

This commit is contained in:
Rushabh Mehta
2013-03-11 14:29:09 +05:30
parent 6316e872cd
commit b8ec3e7ecb
26 changed files with 66 additions and 162 deletions

View File

@@ -0,0 +1,8 @@
import webnotes
def execute():
webnotes.reload_doc('website', 'doctype', 'blogger')
webnotes.conn.sql('''update tabBlogger set posts=(select count(*)
from tabBlog where ifnull(blogger,"")=tabBlogger.name)''')
webnotes.rename_doc("DocType", "Blog", "Blog Post", force=True)
webnotes.conn.sql("""update `tabBlog Post` set published_on=creation""")