mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-23 06:59:20 +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""")
|
||||
Reference in New Issue
Block a user