seitime-frappe/frappe/patches/v10_0/increase_single_table_column_length.py
Ankush Menat 81b37cb7d2
refactor: clean up code to py310 supported features (#17367)
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
2022-07-01 11:51:05 +05:30

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)")