fix for index gen

This commit is contained in:
Brion Vibber 2010-10-11 19:18:47 -07:00
parent 9cb42c8e45
commit 2c9f877ab5

View File

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