@@ 601-609 (lines=9) @@ | ||
598 | $join = array(); |
|
599 | foreach ($indexes as $name => $value) { |
|
600 | $out = ''; |
|
601 | if ($name === 'PRIMARY') { |
|
602 | $out .= 'PRIMARY '; |
|
603 | $name = null; |
|
604 | } else { |
|
605 | if (!empty($value['unique'])) { |
|
606 | $out .= 'UNIQUE '; |
|
607 | } |
|
608 | $name = $this->startQuote . $name . $this->endQuote; |
|
609 | } |
|
610 | if (isset($value['type']) && strtolower($value['type']) === 'fulltext') { |
|
611 | $out .= 'FULLTEXT '; |
|
612 | } |
@@ 3162-3170 (lines=9) @@ | ||
3159 | $join = array(); |
|
3160 | foreach ($indexes as $name => $value) { |
|
3161 | $out = ''; |
|
3162 | if ($name === 'PRIMARY') { |
|
3163 | $out .= 'PRIMARY '; |
|
3164 | $name = null; |
|
3165 | } else { |
|
3166 | if (!empty($value['unique'])) { |
|
3167 | $out .= 'UNIQUE '; |
|
3168 | } |
|
3169 | $name = $this->startQuote . $name . $this->endQuote; |
|
3170 | } |
|
3171 | if (is_array($value['column'])) { |
|
3172 | $out .= 'KEY ' . $name . ' (' . implode(', ', array_map(array(&$this, 'name'), $value['column'])) . ')'; |
|
3173 | } else { |