Unverified Commit a4d3068f authored by belgattitude's avatar belgattitude Committed by Luís Cobucci

Minor cleanup

parent 0d20c853
......@@ -177,10 +177,6 @@ class MySqlSchemaManager extends AbstractSchemaManager
break;
}
$length = $length !== null ? (int) $length : null;
$isNotNull = $tableColumn['null'] !== 'YES';
if ($this->_platform instanceof MariaDb102Platform) {
$columnDefault = $this->getMariaDb1027ColumnDefault($this->_platform, $tableColumn['default'] ?? null);
} else {
......@@ -188,11 +184,11 @@ class MySqlSchemaManager extends AbstractSchemaManager
}
$options = [
'length' => $length,
'length' => $length !== null ? (int) $length : null,
'unsigned' => strpos($tableColumn['type'], 'unsigned') !== false,
'fixed' => (bool) $fixed,
'default' => $columnDefault,
'notnull' => $isNotNull,
'notnull' => $tableColumn['null'] !== 'YES',
'scale' => null,
'precision' => null,
'autoincrement' => strpos($tableColumn['extra'], 'auto_increment') !== false,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment