mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-02 11:49:10 +00:00
chore: drop unused utility method
(cherry picked from commit 52c0df24e3)
This commit is contained in:
@@ -1443,17 +1443,8 @@ class InitSQLProceduresForAR:
|
|||||||
end;
|
end;
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def get_existing_procedures(self):
|
|
||||||
procedures = frappe.db.sql(
|
|
||||||
f"select routine_name from information_schema.routines where routine_type in ('FUNCTION','PROCEDURE') and routine_schema='{frappe.conf.db_name}';"
|
|
||||||
)
|
|
||||||
if procedures:
|
|
||||||
# normalize
|
|
||||||
procedures = [x[0] for x in procedures]
|
|
||||||
return procedures
|
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
existing_procedures = self.get_existing_procedures()
|
existing_procedures = frappe.db.get_routines()
|
||||||
|
|
||||||
if self.genkey_function_name not in existing_procedures:
|
if self.genkey_function_name not in existing_procedures:
|
||||||
frappe.db.sql(self.genkey_function_sql)
|
frappe.db.sql(self.genkey_function_sql)
|
||||||
|
|||||||
Reference in New Issue
Block a user