fix: user doctype singles issue
This commit is contained in:
7
lms/patches/v0_0/user_singles_issue.py
Normal file
7
lms/patches/v0_0/user_singles_issue.py
Normal file
@@ -0,0 +1,7 @@
|
||||
import frappe
|
||||
|
||||
def execute():
|
||||
rows = frappe.db.sql("select field from `tabSingles` where doctype='User'", as_dict = True)
|
||||
|
||||
if len(rows):
|
||||
frappe.db.sql("delete from `tabSingles` where doctype='User'")
|
||||
Reference in New Issue
Block a user