From 3e76be5531f89fb906598435096e3eff54f86944 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Tue, 8 Mar 2016 23:31:06 +1300 Subject: Add group queries and recourse --- debug.xml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'debug.xml') diff --git a/debug.xml b/debug.xml index eb2038cd5..102272cb3 100644 --- a/debug.xml +++ b/debug.xml @@ -149,6 +149,26 @@ DELETE FROM user_device WHERE userId = :userId AND deviceId = :deviceId; + + INSERT INTO groups (name) VALUES (:name); + + + + UPDATE groups SET name = :name WHERE id = :id; + + + + DELETE FROM groups WHERE id = :id; + + + + INSERT INTO user_group (userId, groupId) VALUES (:userId, :groupId); + + + + DELETE FROM user_group WHERE userId = :userId AND groupId = :groupId; + + SELECT * FROM positions WHERE deviceId = :deviceId AND fixTime BETWEEN :from AND :to ORDER BY fixTime; -- cgit v1.2.3