浏览代码

[fix] don't unique text fields

version-14
Rushabh Mehta 10 年前
父节点
当前提交
2b10264166
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      frappe/model/db_schema.py

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

@@ -256,10 +256,10 @@ class DbColumn:
return column_def

if self.default and (self.default not in default_shortcuts) \
and not self.default.startswith(":") and column_def not in ['text', 'longtext']:
and not self.default.startswith(":") and column_def not in ('text', 'longtext'):
column_def += ' default "' + self.default.replace('"', '\"') + '"'

if self.unique:
if self.unique and column_def not in ('text', 'longtext'):
column_def += ' unique'

return column_def


正在加载...
取消
保存