Browse Source

Remove table name in change file ext

master
venkataakhil 2 years ago
parent
commit
a2d35cce29
  1. 2
      smart_service/apis/master_api.py

2
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()

Loading…
Cancel
Save