refactor: clean up code to py39+ supported syntax - f-strings instead of format - latest typing support instead of pre 3.9 TitleCase - remove UTF-8 declarations. - many more changes Powered by https://github.com/asottile/pyupgrade/ + manual cleanups
9 lines
206 B
Python
9 lines
206 B
Python
"""
|
|
Run this after updating country_info.json and or
|
|
"""
|
|
import frappe
|
|
|
|
|
|
def execute():
|
|
for col in ("field", "doctype"):
|
|
frappe.db.sql_ddl(f"alter table `tabSingles` modify column `{col}` varchar(255)")
|