diff --git a/lib/Doctrine/DBAL/Platforms/MySqlPlatform.php b/lib/Doctrine/DBAL/Platforms/MySqlPlatform.php index a54e51440..ed8b59601 100644 --- a/lib/Doctrine/DBAL/Platforms/MySqlPlatform.php +++ b/lib/Doctrine/DBAL/Platforms/MySqlPlatform.php @@ -447,7 +447,7 @@ class MySqlPlatform extends AbstractPlatform if (isset($options['uniqueConstraints']) && ! empty($options['uniqueConstraints'])) { foreach ($options['uniqueConstraints'] as $index => $definition) { - $queryFields .= ', ' . $this->getUniqueIndexDeclarationSql($index, $definition); + $queryFields .= ', ' . $this->getUniqueConstraintDeclarationSql($index, $definition); } }