chore: drop unused utility method

This commit is contained in:
ruthra kumar
2025-07-03 15:18:53 +05:30
parent 9d0ebe3427
commit 52c0df24e3

View File

@@ -1445,17 +1445,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)