From c0dee04079cb2edb855e6eeeab9cb6f1b43fa465 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Tue, 29 Dec 2020 11:22:01 -0800 Subject: Migrate keys and remove database cleanup --- setup/default.xml | 8 -------- 1 file changed, 8 deletions(-) (limited to 'setup') diff --git a/setup/default.xml b/setup/default.xml index 882892e5d..4acfe7c22 100644 --- a/setup/default.xml +++ b/setup/default.xml @@ -63,14 +63,6 @@ SELECT * FROM tc_events WHERE deviceId = :deviceId AND serverTime BETWEEN :from AND :to ORDER BY serverTime - - DELETE FROM tc_positions WHERE serverTime < :serverTime AND id NOT IN (SELECT positionId FROM tc_devices WHERE positionId IS NOT NULL) - - - - DELETE FROM tc_events WHERE serverTime < :serverTime - - SELECT * FROM tc_statistics WHERE captureTime BETWEEN :from AND :to ORDER BY captureTime -- cgit v1.2.3