1
0
mirror of synced 2025-02-09 08:49:26 +03:00

add field options as array

This commit is contained in:
Dick Marinus 2015-06-30 19:41:54 +02:00
parent 6b3056ff8c
commit 9715f3dfcc

View File

@ -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'])) {