),
'primary key' => array('id'),
'unique keys' => array(
- 'user_name_idx' => array('name'),
+ 'user_nickname_idx' => array('nickname'),
'user_email_idx' => array('email'),
'user_incomingemail_idx' => array('incomingemail'),
'user_sms_idx' => array('sms'),
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);
}
/**