Enhance support of default value in extrafields

This commit is contained in:
Laurent Destailleur
2017-09-02 15:12:21 +02:00
parent 9923c87fd8
commit 3beee569a6
5 changed files with 64 additions and 25 deletions

View File

@@ -528,7 +528,7 @@ class ExtraFields
$typedb=$type;
$lengthdb=$length;
}
$field_desc = array('type'=>$typedb, 'value'=>$lengthdb, 'null'=>($required?'NOT NULL':'NULL'));
$field_desc = array('type'=>$typedb, 'value'=>$lengthdb, 'null'=>($required?'NOT NULL':'NULL'), 'default'=>$default);
if ($type != 'separate') // No table update when separate type
{