From 9f9cc4870d821f8d85008c2e78a299ad06c1c427 Mon Sep 17 00:00:00 2001 From: guilhermeblanco Date: Wed, 6 Jan 2010 13:27:09 +0000 Subject: [PATCH] [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. --- lib/Doctrine/DBAL/Platforms/MySqlPlatform.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } }