Commit 54db42cb authored by Albert Casademont's avatar Albert Casademont Committed by Alexander

Fix unsigned columns in MySql

Unsigned column properties were never set. In consequence all migrations diff were trying to change the column definition when it was already changed.
parent b961a3fc
......@@ -141,17 +141,11 @@ class MySqlSchemaManager extends AbstractSchemaManager
}
$length = ((int) $length == 0) ? null : (int) $length;
$def = array(
'type' => $type,
'length' => $length,
'unsigned' => (bool) $unsigned,
'fixed' => (bool) $fixed
);
$options = array(
'length' => $length,
'unsigned' => (bool)$unsigned,
'fixed' => (bool)$fixed,
'unsigned' => (bool) (strpos($tableColumn['type'], 'unsigned') !== false),
'fixed' => (bool) $fixed,
'default' => isset($tableColumn['default']) ? $tableColumn['default'] : null,
'notnull' => (bool) ($tableColumn['null'] != 'YES'),
'scale' => null,
......
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