]> git.mjollnir.org Git - moodle.git/commitdiff
UNIQUE KEY is UNIQUE
authorstronk7 <stronk7>
Thu, 17 Aug 2006 00:31:23 +0000 (00:31 +0000)
committerstronk7 <stronk7>
Thu, 17 Aug 2006 00:31:23 +0000 (00:31 +0000)
lib/xmldb/classes/generators/XMLDBGenerator.class.php

index 56c415a9a7073ef4b4fafdde0719bc4cd7e6fedb..73cdbcae59cebd162729d02c7906c03350ea808f 100644 (file)
@@ -322,7 +322,7 @@ class XMLDBgenerator {
             case XMLDB_KEY_UNIQUE:
                 if ($this->unique_keys) {
                     $key = $this->getNameForObject($xmldb_table->getName(), implode(', ', $xmldb_key->getFields()), 'uk');
-                    $key .= ' UNIQUE KEY (' . implode(', ', $this->getEncQuoted($xmldb_key->getFields())) . ')';
+                    $key .= ' UNIQUE (' . implode(', ', $this->getEncQuoted($xmldb_key->getFields())) . ')';
                 }
                 break;
             case XMLDB_KEY_FOREIGN: