DB: Support DECIMAL(precision,scale) syntax in XML

Add support for specifying the precision and scale of a decimal data
type to the XML description language.

See owncloud/core#6475
This commit is contained in:
Oliver Gasser 2013-12-17 22:46:45 +01:00
parent 22a6bf9e5a
commit 3b0d0e2b1f
1 changed files with 8 additions and 0 deletions

View File

@ -183,6 +183,14 @@ class MDB2SchemaReader {
$primary = $this->asBool($child);
$options['primary'] = $primary;
break;
case 'precision':
$precision = (string)$child;
$options['precision'] = $precision;
break;
case 'scale':
$scale = (string)$child;
$options['scale'] = $scale;
break;
default:
throw new \DomainException('Unknown element: ' . $child->getName());