add support for the <primary/> element within field definitions

This commit is contained in:
Robin Appelman 2013-07-22 16:25:07 +02:00
parent dc272e6e20
commit b073a34e77
1 changed files with 4 additions and 0 deletions

View File

@ -138,6 +138,10 @@ class OC_DB_MDB2SchemaReader {
$comment = (string)$child;
$options['comment'] = $comment;
break;
case 'primary':
$primary = self::asBool($child);
$options['primary'] = $primary;
break;
default:
throw new DomainException('Unknown element: '.$child->getName());