This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Internal database structure
#4
Try this, just make sure to make a backup beforehand Smile
Code:
oldname = 'lignt - grightness'
newname = 'light'
db:query('UPDATE visobjects SET name=? WHERE name=?', newname, oldname)

oldicon = 'weather-night-A0F007-010101.svg'
newicon = 'my_weather_icon.svg'
db:query('UPDATE visobjects SET params=replace(params,?,?)', oldicon, newicon)

oldicon = 'bulb-A0F007-010101.svg'
newicon = 'my_lights_on_icon.svg'
db:query('UPDATE visobjects SET params=replace(params,?,?)', oldicon, newicon)
Reply


Messages In This Thread
Internal database structure - by Thomas - 16.02.2017, 11:08
RE: Internal database structure - by admin - 16.02.2017, 11:32
RE: Internal database structure - by Thomas - 16.02.2017, 14:31
RE: Internal database structure - by admin - 17.02.2017, 08:57
RE: Internal database structure - by Thomas - 22.02.2017, 21:37
RE: Internal database structure - by admin - 23.02.2017, 07:05
RE: Internal database structure - by admin - 23.02.2017, 08:10
RE: Internal database structure - by Thomas - 23.02.2017, 13:02

Forum Jump: