use correct columns for dropping index (does not matter if they contain length or not)

This commit is contained in:
Ralf Becker 2015-08-26 13:08:44 +00:00
parent c1d0e9064e
commit abc319b390

View File

@ -1426,7 +1426,7 @@ class schema_proc
// for PostgreSQL we dont use length-limited indexes --> nothing to do // for PostgreSQL we dont use length-limited indexes --> nothing to do
if ($this->m_odb->Type == 'pgsql') continue; if ($this->m_odb->Type == 'pgsql') continue;
// for MySQL we drop current index and create it with correct length // for MySQL we drop current index and create it with correct length
$this->DropIndex($table, $definition); $this->DropIndex($table, $columns);
} }
$this->CreateIndex($table, $columns, $type == 'uc'); $this->CreateIndex($table, $columns, $type == 'uc');
} }