mirror of
https://github.com/friendica/friendica
synced 2024-05-13 06:09:37 +02:00
Generate field_list only when needed
https://github.com/friendica/friendica/pull/3442/files#r115137722
This commit is contained in:
parent
f838430535
commit
354531bfa6
|
@ -399,10 +399,12 @@ function update_structure($verbose, $action, $tables=null, $definition=null) {
|
|||
}
|
||||
|
||||
$field_list = '';
|
||||
if ($is_unique && $ignore == '') {
|
||||
foreach ($structure['fields'] AS $fieldname => $parameters) {
|
||||
$field_list .= 'ANY_VALUE(`' . $fieldname . '`),';
|
||||
}
|
||||
$field_list = rtrim($field_list, ',');
|
||||
}
|
||||
|
||||
if ($verbose) {
|
||||
// Ensure index conversion to unique removes duplicates
|
||||
|
|
Loading…
Reference in a new issue