Skip to content

Commit

Permalink
UNIQUE KEY is UNIQUE
Browse files Browse the repository at this point in the history
  • Loading branch information
stronk7 committed Aug 17, 2006
1 parent 848caec commit 6c11ad5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/xmldb/classes/generators/XMLDBGenerator.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ function getKeySQL ($xmldb_table, $xmldb_key) {
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:
Expand Down

0 comments on commit 6c11ad5

Please sign in to comment.