Logic Machine Forum
GA namechange - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8)
+--- Thread: GA namechange (/showthread.php?tid=5670)



GA namechange - tomnord - 15.10.2024

Hello. Is it possible, via script, to edit the names of multiple GA? I have quite a few adresses that has + and = in the name, causing problems down the line.  I wish to replace these symbols with other signs.


RE: GA namechange - Daniel - 15.10.2024

https://kb.logicmachine.net/libraries/lua/#grpcreateconfig


RE: GA namechange - admin - 15.10.2024

Run this once, make a backup before running the script.
Code:
db:query('UPDATE objects SET name=replace(name, "+", "_")')
db:query('UPDATE objects SET name=replace(name, "=", "_")')