1
0
mirror of synced 2025-01-18 14:31:40 +03:00

DDC-975 - Fix notice in SchemaTool in combination with XML mapping driver.

This commit is contained in:
Benjamin Eberlei 2011-01-13 21:43:33 +01:00
parent fdee7a9ae0
commit 03698e4068

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'];