From a2d35cce29e12949a1356c81cc146ef783e169b2 Mon Sep 17 00:00:00 2001 From: venkataakhil Date: Thu, 30 Mar 2023 13:23:38 +0530 Subject: [PATCH] Remove table name in change file ext --- smart_service/apis/master_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smart_service/apis/master_api.py b/smart_service/apis/master_api.py index 3f3c6ce..702f840 100644 --- a/smart_service/apis/master_api.py +++ b/smart_service/apis/master_api.py @@ -336,7 +336,7 @@ def change_file_ext(): """ File Name """ frappe.db.sql(''' - update _a9b9faaf89312ce4.tabFile set file_name = concat(substring(file_name,1,length(file_name)-3),lower(substring(file_name,length(file_name)-2))) + update tabFile set file_name = concat(substring(file_name,1,length(file_name)-3),lower(substring(file_name,length(file_name)-2))) where substring(file_name,length(file_name)-2) REGEXP BINARY '[A-Z]'; ''') frappe.db.commit()