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:
Saurabh 2019-01-04 13:34:04 +05:30 committed by GitHub
commit aa2f23efc4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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