Remove arbitrary limit of only supporting 10 custom columns

This commit is contained in:
David Dworken 2023-10-30 17:51:07 -07:00
parent f8b515c328
commit 166661dd7f
No known key found for this signature in database

View File

@ -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 {