mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-08 15:51:19 +00:00
renamed blog to blog_post and refresh issues
This commit is contained in:
8
patches/march_2013/p03_rename_blog_to_blog_post.py
Normal file
8
patches/march_2013/p03_rename_blog_to_blog_post.py
Normal 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""")
|
||||
@@ -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",
|
||||
]
|
||||
Reference in New Issue
Block a user