Commit 5b3f5abc authored by armetiz's avatar armetiz Committed by Benjamin Eberlei

Unique key name isn't correctly set - DDC-1603

parent ac36de57
...@@ -167,7 +167,7 @@ class Table extends AbstractAsset ...@@ -167,7 +167,7 @@ class Table extends AbstractAsset
*/ */
public function addUniqueIndex(array $columnNames, $indexName = null) public function addUniqueIndex(array $columnNames, $indexName = null)
{ {
if ($indexName == null) { if ($indexName === null) {
$indexName = $this->_generateIdentifierName( $indexName = $this->_generateIdentifierName(
array_merge(array($this->getName()), $columnNames), "uniq", $this->_getMaxIdentifierLength() array_merge(array($this->getName()), $columnNames), "uniq", $this->_getMaxIdentifierLength()
); );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment