mirror of
https://github.com/ddworken/hishtory.git
synced 2025-06-24 14:01:46 +02:00
Remove arbitrary limit of only supporting 10 custom columns
This commit is contained in:
parent
f8b515c328
commit
166661dd7f
@ -943,8 +943,7 @@ func getAllCustomColumnNames(ctx context.Context) ([]string, error) {
|
|||||||
SELECT DISTINCT json_extract(value, '$.name') as cc_name
|
SELECT DISTINCT json_extract(value, '$.name') as cc_name
|
||||||
FROM history_entries
|
FROM history_entries
|
||||||
JOIN json_each(custom_columns)
|
JOIN json_each(custom_columns)
|
||||||
WHERE value IS NOT NULL
|
WHERE value IS NOT NULL`
|
||||||
LIMIT 10`
|
|
||||||
return db.Raw(query).Rows()
|
return db.Raw(query).Rows()
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user