summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-10-11 19:18:47 -0700
committerBrion Vibber <brion@pobox.com>2010-10-11 19:18:47 -0700
commit2c9f877ab5b79f4a0734149f3769bfa0ddf4dd4d (patch)
treeb61779b4d34a56b93effdff5fb4fcbd4926b04d5
parent9cb42c8e45b9adf33872a7c5b116795c768b3b49 (diff)
fix for index gen
-rw-r--r--lib/schema.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/schema.php b/lib/schema.php
index 4eafb4df2..acc941284 100644
--- a/lib/schema.php
+++ b/lib/schema.php
@@ -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);
}
}