forked from GNUsocial/gnu-social
fix for column prefixes in table/index building
This commit is contained in:
@@ -254,7 +254,16 @@ class Schema
|
||||
function buildIndexList(array $def)
|
||||
{
|
||||
// @fixme
|
||||
return '(' . implode(',', array_map(array($this, 'quoteIdentifier'), $def)) . ')';
|
||||
return '(' . implode(',', array_map(array($this, 'buildIndexItem'), $def)) . ')';
|
||||
}
|
||||
|
||||
function buildIndexItem($def)
|
||||
{
|
||||
if (is_array($def)) {
|
||||
list($name, $size) = $def;
|
||||
return $this->quoteIdentifier($name) . '(' . intval($size) . ')';
|
||||
}
|
||||
return $this->quoteIdentifier($def);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user