aboutsummaryrefslogtreecommitdiff
path: root/debug.xml
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-06-17 10:50:51 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-06-17 10:50:51 +1200
commitfe83a2a83d086f8af8579f2a6c546f3576067964 (patch)
tree287da8088e18496d966585860849a9e0a2e8c243 /debug.xml
parent6cc356e9bb80583444f9a721b1604b3130199e24 (diff)
downloadtrackermap-server-fe83a2a83d086f8af8579f2a6c546f3576067964.tar.gz
trackermap-server-fe83a2a83d086f8af8579f2a6c546f3576067964.tar.bz2
trackermap-server-fe83a2a83d086f8af8579f2a6c546f3576067964.zip
Rename some database parameters
Diffstat (limited to 'debug.xml')
-rw-r--r--debug.xml25
1 files changed, 10 insertions, 15 deletions
diff --git a/debug.xml b/debug.xml
index 01bb66d60..1074d9eba 100644
--- a/debug.xml
+++ b/debug.xml
@@ -117,22 +117,21 @@
id INT PRIMARY KEY AUTO_INCREMENT);
</entry>
+ <entry key='database.selectServers'>
+ SELECT * FROM server;
+ </entry>
+
<entry key='database.insertServer'>
INSERT INTO server (registration, latitude, longitude, zoom)
VALUES (:registration, :latitude, :longitude, :zoom);
</entry>
- <entry key='database.selectServer'>
- SELECT * FROM server;
- </entry>
-
<entry key='database.updateServer'>
UPDATE server SET registration = :registration WHERE id = :id;
</entry>
<entry key='database.loginUser'>
- SELECT *
- FROM user
+ SELECT * FROM user
WHERE email = :email;
</entry>
@@ -144,12 +143,9 @@
INSERT INTO user (name, email, hashedPassword, salt, admin)
VALUES (:name, :email, :hashedPassword, :salt, :admin);
</entry>
-
+
<entry key='database.updateUser'>
- UPDATE user SET
- name = :name,
- email = :email,
- admin = :admin
+ UPDATE user SET name = :name, email = :email, admin = :admin
WHERE id = :id;
</entry>
@@ -161,11 +157,11 @@
DELETE FROM user WHERE id = :id;
</entry>
- <entry key='database.getPermissions'>
+ <entry key='database.getPermissionsAll'>
SELECT userId, deviceId FROM user_device;
</entry>
- <entry key='database.selectDeviceAll'>
+ <entry key='database.selectDevicesAll'>
SELECT * FROM device;
</entry>
@@ -181,7 +177,7 @@
UPDATE device SET name = :name, uniqueId = :uniqueId WHERE id = :id;
</entry>
- <entry key='database.removeDevice'>
+ <entry key='database.deleteDevice'>
DELETE FROM device WHERE id = :id;
</entry>
@@ -202,7 +198,6 @@
UPDATE device SET positionId = :id WHERE id = :deviceId;
</entry>
-
<!-- PROTOCOL CONFIG -->
<entry key='detector.port'>5000</entry>