1
0
mirror of synced 2024-12-14 15:16:04 +03:00

Respect unsigned fields when tables get converted to entities.

This is working on our mysql setup, however i have no idea of the consequences of this change when using other RDBMSes.
This commit is contained in:
Kristian Mide 2013-09-26 14:41:06 +02:00
parent bd7c7ebaf3
commit 0326731348

View File

@ -1431,6 +1431,10 @@ public function __construct()
$column[] = 'nullable=' . var_export($fieldMapping['nullable'], true); $column[] = 'nullable=' . var_export($fieldMapping['nullable'], true);
} }
if (isset($fieldMapping['unsigned']) && $fieldMapping['unsigned']) {
$column[] = 'options={"unsigned"=true}';
}
if (isset($fieldMapping['columnDefinition'])) { if (isset($fieldMapping['columnDefinition'])) {
$column[] = 'columnDefinition="' . $fieldMapping['columnDefinition'] . '"'; $column[] = 'columnDefinition="' . $fieldMapping['columnDefinition'] . '"';
} }