support default null value for blob type
This commit is contained in:
parent
d8eaa98d13
commit
49ae517e9b
|
@ -332,6 +332,9 @@ function defaultValue(mtgMetaField $field)
|
|||
} else if($type->isBool()) {
|
||||
return $default ?? 'false';
|
||||
} else if($type->isBlob()) {
|
||||
if ($default == 'null') {
|
||||
$default = 'nil';
|
||||
}
|
||||
return $default ?? 'nil';
|
||||
} else {
|
||||
throw new Exception("Unknown type '$type'");
|
||||
|
|
Loading…
Reference in New Issue