瀏覽代碼

allow varchar longer than 250 now is supported (#2137)

version-14
RobertSchouten 8 年之前
committed by Rushabh Mehta
父節點
當前提交
5f93a78477
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. +2
    -2
      frappe/model/db_schema.py

+ 2
- 2
frappe/model/db_schema.py 查看文件

@@ -109,8 +109,8 @@ class DbTable:

# validate length range
new_length = cint(col.length) or cint(varchar_len)
if not (1 <= new_length <= 255):
frappe.throw(_("Length of {0} should be between 1 and 255").format(col.fieldname))
if not (1 <= new_length <= 1000):
frappe.throw(_("Length of {0} should be between 1 and 1000").format(col.fieldname))

try:
# check for truncation


Loading…
取消
儲存