mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 08:23:12 +01:00
CreateIndex: remove length limits from column names, if DB type is NOT MySQL
This commit is contained in:
parent
67812b8c82
commit
e89850c067
@ -517,6 +517,11 @@ class schema_proc
|
|||||||
*/
|
*/
|
||||||
function CreateIndex($sTableName,$aColumnNames,$bUnique=false,$options='',$sIdxName='')
|
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))
|
if (!$sIdxName || is_numeric($sIdxName))
|
||||||
{
|
{
|
||||||
$sIdxName = $this->_index_name($sTableName,$aColumnNames);
|
$sIdxName = $this->_index_name($sTableName,$aColumnNames);
|
||||||
|
Loading…
Reference in New Issue
Block a user