1
0
mirror of synced 2025-02-20 22:23:14 +03:00

Unique key name isn't correctly set - DDC-1603

This commit is contained in:
armetiz 2012-01-16 10:30:15 +01:00
parent 27451a59d4
commit 56c49fedd2

View File

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