summaryrefslogtreecommitdiff
path: root/lib/schema.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/schema.php')
-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);
}
}