1
0
mirror of synced 2025-01-30 03:51:43 +03:00

Update lib/Doctrine/ORM/Tools/SchemaTool.php

This commit is contained in:
armetiz 2012-01-16 13:54:04 +01:00
parent 56c49fedd2
commit 21c9be74c9

View File

@ -229,7 +229,7 @@ class SchemaTool
if (isset($class->table['uniqueConstraints'])) {
foreach ($class->table['uniqueConstraints'] AS $indexName => $indexData) {
$table->addUniqueIndex($indexData['columns'], $indexName);
$table->addUniqueIndex($indexData['columns'], is_numeric($indexName) ? null : $indexName);
}
}