diff --git a/frappe/model/db_schema.py b/frappe/model/db_schema.py index 3f62859487..ccb6f0dc43 100644 --- a/frappe/model/db_schema.py +++ b/frappe/model/db_schema.py @@ -102,6 +102,9 @@ class DbTable: columns += self.columns.values() for col in columns: + if len(col.fieldname) >= 64: + frappe.throw(_("Fieldname is limited to 64 characters")) + if col.fieldtype in type_map and type_map[col.fieldtype][0]=="varchar": # validate length range