mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-10-30 22:40:48 +00:00
字段类型调整
This commit is contained in:
parent
8e9cc52831
commit
5178fca71a
@ -811,6 +811,10 @@ class SystemCrudServices extends BaseServices
|
||||
if (in_array($fieldType, ['text', 'longtext', 'tinytext'])) {
|
||||
unset($option['limit']);
|
||||
}
|
||||
//判断字段类型
|
||||
if ($fieldType == 'boolean' && isset($option['default']) && $option['default'] === '') {
|
||||
unset($option['default']);
|
||||
}
|
||||
$table->addColumn($item['field'], $this->changeTabelRule($item['field_type']), $option);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user