How to change or update the `name` field char length in Frappe DocType?

I want to change the char length for the name field for a specific DocType, so how can I do this in Frappe?

Not really possible from UI. You can directly do it from console with “alter table…”.