chore: drop unused utility method

(cherry picked from commit 52c0df24e3)
This commit is contained in:
ruthra kumar
2025-07-03 15:18:53 +05:30
committed by Mergify
parent 0bf5d3dae3
commit 1d18a3b1a3

View File

@@ -1443,17 +1443,8 @@ class InitSQLProceduresForAR:
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):
existing_procedures = self.get_existing_procedures()
existing_procedures = frappe.db.get_routines()
if self.genkey_function_name not in existing_procedures:
frappe.db.sql(self.genkey_function_sql)