fix for index gen

This commit is contained in:
Brion Vibber 2010-10-11 19:18:47 -07:00
parent 9cb42c8e45
commit 2c9f877ab5
1 changed files with 1 additions and 1 deletions

View File

@ -169,7 +169,7 @@ class Schema
$this->endCreateTable($name, $def);
if (!empty($def['indexes'])) {
foreach ($def['indexes'] as $col => $colDef) {
$this->appendCreateIndex($statements, $table, $col, $colDef);
$this->appendCreateIndex($statements, $name, $col, $colDef);
}
}