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

Merge branch 'DDC-975'

This commit is contained in:
Benjamin Eberlei 2011-01-13 21:43:47 +01:00
commit bcafa19386

View File

@ -509,7 +509,7 @@ class SchemaTool
if (isset($joinColumn['nullable'])) {
$columnOptions['notnull'] = !$joinColumn['nullable'];
}
if ($fieldMapping['type'] == "string") {
if ($fieldMapping['type'] == "string" && isset($fieldMapping['length'])) {
$columnOptions['length'] = $fieldMapping['length'];
} else if ($fieldMapping['type'] == "decimal") {
$columnOptions['scale'] = $fieldMapping['scale'];