16.12.2022, 10:55
Run this script once:
Code:
objs = db:getall('SELECT id, cls FROM visobjects WHERE cls NOT LIKE "%tooltip%"')
for _, obj in ipairs(objs) do
cls = obj.cls
if type(cls) == 'string' and #cls > 0 then
cls = cls .. ' tooltip'
else
cls = 'tooltip'
end
db:update('visobjects', { cls = cls }, { id = obj.id })
end