Commit 8e870a63 authored by Benjamin Eberlei's avatar Benjamin Eberlei

Merge pull request #94 from armetiz/patch-1

Unique key name isn't correctly set - DDC-1603
parents 8253c780 16beed81
......@@ -167,7 +167,7 @@ class Table extends AbstractAsset
*/
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()
);
......
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