Commit 16beed81 authored by armetiz's avatar armetiz

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

parent b6a4eca7
...@@ -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