diff options
author | Abyss777 <abyss@fox5.ru> | 2018-06-08 10:00:28 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2018-06-08 10:00:28 +0500 |
commit | 37868cf0b5be5b99e48b28d1aafacdc74c2aff9e (patch) | |
tree | 4abf328422a470053cea2228ed373e7a60de7cbe /setup | |
parent | acf93dbe1b5c03df4f8f82ffb7fb0cace767a416 (diff) | |
download | trackermap-server-37868cf0b5be5b99e48b28d1aafacdc74c2aff9e.tar.gz trackermap-server-37868cf0b5be5b99e48b28d1aafacdc74c2aff9e.tar.bz2 trackermap-server-37868cf0b5be5b99e48b28d1aafacdc74c2aff9e.zip |
Rename all tables to avoid using reserved words
Diffstat (limited to 'setup')
-rw-r--r-- | setup/default.xml | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/setup/default.xml b/setup/default.xml index ee80fb4df..c427217f7 100644 --- a/setup/default.xml +++ b/setup/default.xml @@ -41,36 +41,36 @@ <entry key='database.changelog'>./schema/changelog-master.xml</entry> <entry key='database.loginUser'> - SELECT * FROM users + SELECT * FROM tc_users WHERE email = :email OR login = :email </entry> <entry key='database.selectPositions'> - SELECT * FROM positions WHERE deviceId = :deviceId AND fixTime BETWEEN :from AND :to ORDER BY fixTime + SELECT * FROM tc_positions WHERE deviceId = :deviceId AND fixTime BETWEEN :from AND :to ORDER BY fixTime </entry> <entry key='database.selectLatestPositions'> - SELECT positions.* FROM positions INNER JOIN devices ON positions.id = devices.positionid; + SELECT tc_positions.* FROM tc_positions INNER JOIN tc_devices ON tc_positions.id = tc_devices.positionid; </entry> <entry key='database.updateLatestPosition'> - UPDATE devices SET positionId = :id WHERE id = :deviceId + UPDATE tc_devices SET positionId = :id WHERE id = :deviceId </entry> <entry key='database.selectEvents'> - SELECT * FROM events WHERE deviceId = :deviceId AND serverTime BETWEEN :from AND :to ORDER BY serverTime + SELECT * FROM tc_events WHERE deviceId = :deviceId AND serverTime BETWEEN :from AND :to ORDER BY serverTime </entry> <entry key='database.deletePositions'> - DELETE FROM positions WHERE serverTime < :serverTime AND id NOT IN (SELECT positionId FROM devices WHERE positionId IS NOT NULL) + DELETE FROM tc_positions WHERE serverTime < :serverTime AND id NOT IN (SELECT positionId FROM tc_devices WHERE positionId IS NOT NULL) </entry> <entry key='database.deleteEvents'> - DELETE FROM events WHERE serverTime < :serverTime + DELETE FROM tc_events WHERE serverTime < :serverTime </entry> <entry key='database.selectStatistics'> - SELECT * FROM statistics WHERE captureTime BETWEEN :from AND :to ORDER BY captureTime + SELECT * FROM tc_statistics WHERE captureTime BETWEEN :from AND :to ORDER BY captureTime </entry> <!-- PROTOCOL CONFIG --> |