Skip to content

Commit

Permalink
Merge pull request #94 from armetiz/patch-1
Browse files Browse the repository at this point in the history
Unique key name isn't correctly set - DDC-1603
  • Loading branch information
beberlei committed Jan 21, 2012
2 parents 8253c78 + 16beed8 commit 8e870a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Doctrine/DBAL/Schema/Table.php
Expand Up @@ -167,7 +167,7 @@ public function addIndex(array $columnNames, $indexName = null)
*/
public function addUniqueIndex(array $columnNames, $indexName = null)
{
if ($indexName == null) {
if ($indexName === null) {
$indexName = $this->_generateIdentifierName(
array_merge(array($this->getName()), $columnNames), "uniq", $this->_getMaxIdentifierLength()
);
Expand Down

0 comments on commit 8e870a6

Please sign in to comment.