https://github.com/friendica/friendica/pull/3442/files#r115137722
}
$field_list = '';
- foreach ($structure['fields'] AS $fieldname => $parameters) {
- $field_list .= 'ANY_VALUE(`' . $fieldname . '`),';
+ if ($is_unique && $ignore == '') {
+ foreach ($structure['fields'] AS $fieldname => $parameters) {
+ $field_list .= 'ANY_VALUE(`' . $fieldname . '`),';
+ }
+ $field_list = rtrim($field_list, ',');
}
- $field_list = rtrim($field_list, ',');
-
+
if ($verbose) {
// Ensure index conversion to unique removes duplicates
if ($is_unique) {