diff options
author | Robin Appelman <icewind@owncloud.com> | 2013-07-22 16:25:07 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2013-07-22 16:25:07 +0200 |
commit | b073a34e77d127488b414fedc5b24c31b11bc12e (patch) | |
tree | 9a97ff093528cc475cc6f6e9bb7a7c099c5e3334 | |
parent | dc272e6e209e9cc9a555df7ee103e48f8d088dc6 (diff) | |
download | nextcloud-server-b073a34e77d127488b414fedc5b24c31b11bc12e.tar.gz nextcloud-server-b073a34e77d127488b414fedc5b24c31b11bc12e.zip |
add support for the <primary/> element within field definitions
-rw-r--r-- | lib/db/mdb2schemareader.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/db/mdb2schemareader.php b/lib/db/mdb2schemareader.php index b88e0f60419..e9561a7ef1d 100644 --- a/lib/db/mdb2schemareader.php +++ b/lib/db/mdb2schemareader.php @@ -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()); |