From abc319b3900261438cbdc5818c5af11a21c36264 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 26 Aug 2015 13:08:44 +0000 Subject: [PATCH] use correct columns for dropping index (does not matter if they contain length or not) --- phpgwapi/inc/class.schema_proc.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpgwapi/inc/class.schema_proc.inc.php b/phpgwapi/inc/class.schema_proc.inc.php index 3fa6bf9c5d..7163ac475b 100644 --- a/phpgwapi/inc/class.schema_proc.inc.php +++ b/phpgwapi/inc/class.schema_proc.inc.php @@ -1426,7 +1426,7 @@ class schema_proc // for PostgreSQL we dont use length-limited indexes --> nothing to do if ($this->m_odb->Type == 'pgsql') continue; // 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'); }