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""")

View File

@@ -210,5 +210,6 @@ patch_list = [
"execute:webnotes.conn.sql('update tabDocPerm set `submit`=1, `cancel`=1, `amend`=1 where parent=\"Time Log\"')",
"execute:webnotes.delete_doc('DocType', 'Attendance Control Panel')",
"patches.march_2013.p02_get_global_default",
"execute:webnotes.bean('Style Settings', 'Style Settings').save()"
"execute:webnotes.bean('Style Settings', 'Style Settings').save()",
"patches.march_2013.p03_rename_blog_to_blog_post",
]