Commit f9af44c1 authored by Guilherme Blanco's avatar Guilherme Blanco

Merge pull request #183 from acasademont/patch-1

Fix unsigned columns in MySql
parents 807e2292 e44a6c36
......@@ -100,7 +100,7 @@ class MySqlSchemaManager extends AbstractSchemaManager
$decimal = strtok('(), ') ? strtok('(), '):null;
}
$type = array();
$unsigned = $fixed = null;
$fixed = null;
if ( ! isset($tableColumn['name'])) {
$tableColumn['name'] = '';
......@@ -147,7 +147,7 @@ class MySqlSchemaManager extends AbstractSchemaManager
$options = array(
'length' => $length,
'unsigned' => (bool) $unsigned,
'unsigned' => (bool) (strpos($tableColumn['type'], 'unsigned') !== false),
'fixed' => (bool) $fixed,
'default' => isset($tableColumn['default']) ? $tableColumn['default'] : null,
'notnull' => (bool) ($tableColumn['null'] != 'YES'),
......
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