From 867e1c8a78ef793b589737c34b96e5899af38138 Mon Sep 17 00:00:00 2001 From: John Mizerek Date: Sun, 18 Jan 2026 13:07:27 -0800 Subject: [PATCH] Add temp beacon reassign script --- api/beacons/reassign_all.cfm | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 api/beacons/reassign_all.cfm diff --git a/api/beacons/reassign_all.cfm b/api/beacons/reassign_all.cfm new file mode 100644 index 0000000..e9e2b09 --- /dev/null +++ b/api/beacons/reassign_all.cfm @@ -0,0 +1,22 @@ + + + + + + + + + UPDATE Beacons + SET BeaconBusinessID = + + + + SELECT COUNT(*) AS cnt FROM Beacons WHERE BeaconBusinessID = + + +#serializeJSON({ "OK": true, "MESSAGE": "All beacons reassigned to BusinessID #targetBusinessID#", "COUNT": qCount.cnt })# + + + #serializeJSON({ "OK": false, "ERROR": cfcatch.message })# + +