add field options as array
This commit is contained in:
parent
6b3056ff8c
commit
9715f3dfcc
@ -1650,8 +1650,14 @@ public function __construct(<params>)
|
||||
$column[] = 'nullable=' . var_export($fieldMapping['nullable'], true);
|
||||
}
|
||||
|
||||
$options = [];
|
||||
|
||||
if (isset($fieldMapping['unsigned']) && $fieldMapping['unsigned']) {
|
||||
$column[] = 'options={"unsigned"=true}';
|
||||
$options[] = '"unsigned"=true';
|
||||
}
|
||||
|
||||
if ($options) {
|
||||
$column[] = 'options={'.implode(',', $options).'}';
|
||||
}
|
||||
|
||||
if (isset($fieldMapping['columnDefinition'])) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user