Update lib/Doctrine/ORM/Tools/SchemaTool.php
This commit is contained in:
parent
56c49fedd2
commit
21c9be74c9
1 changed files with 1 additions and 1 deletions
|
@ -229,7 +229,7 @@ class SchemaTool
|
||||||
|
|
||||||
if (isset($class->table['uniqueConstraints'])) {
|
if (isset($class->table['uniqueConstraints'])) {
|
||||||
foreach ($class->table['uniqueConstraints'] AS $indexName => $indexData) {
|
foreach ($class->table['uniqueConstraints'] AS $indexName => $indexData) {
|
||||||
$table->addUniqueIndex($indexData['columns'], $indexName);
|
$table->addUniqueIndex($indexData['columns'], is_numeric($indexName) ? null : $indexName);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue