Merge pull request #6724 from surajshetty3416/fix-patch-for-mac-users
fix(patch): Move frappe.db.commit() after transactional query
This commit is contained in:
commit
aa2f23efc4
1 changed files with 1 additions and 1 deletions
|
|
@ -16,10 +16,10 @@ def execute():
|
|||
|
||||
# reloading view log doctype to create `tabView Log` table
|
||||
frappe.reload_doc('core', 'doctype', 'view_log')
|
||||
frappe.db.commit()
|
||||
|
||||
# Move the data to newly created `tabView Log` table
|
||||
frappe.db.sql("INSERT INTO `tabView Log` SELECT * FROM `ViewLogTemp`")
|
||||
frappe.db.commit()
|
||||
|
||||
# Delete temporary table
|
||||
frappe.db.sql("DROP table `ViewLogTemp`")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue