Commit 9f9cc487 authored by guilhermeblanco's avatar guilhermeblanco

[2.0][DDC-236] Enhanced unique constraints to support names. Fixed general...

[2.0][DDC-236] Enhanced unique constraints to support names. Fixed general issues on XML and YAML exporters. Fixed issues on XML, YAML, Doctrine 1.X and Annotation drivers.
parent 9ad13c47
......@@ -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);
}
}
......
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