diff --git a/phpgwapi/inc/class.schema_proc.inc.php b/phpgwapi/inc/class.schema_proc.inc.php index 5c5320c969..162a014025 100644 --- a/phpgwapi/inc/class.schema_proc.inc.php +++ b/phpgwapi/inc/class.schema_proc.inc.php @@ -517,6 +517,11 @@ class schema_proc */ function CreateIndex($sTableName,$aColumnNames,$bUnique=false,$options='',$sIdxName='') { + // remove length limits from column names, if DB type is NOT MySQL + if ($this->sType != 'mysql') + { + $aColumnNames = preg_replace('/ *\(\d+\)$/','',$aColumnNames); + } if (!$sIdxName || is_numeric($sIdxName)) { $sIdxName = $this->_index_name($sTableName,$aColumnNames);