aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/DataStore.java
diff options
context:
space:
mode:
Diffstat (limited to 'main/src/cgeo/geocaching/DataStore.java')
-rw-r--r--main/src/cgeo/geocaching/DataStore.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/main/src/cgeo/geocaching/DataStore.java b/main/src/cgeo/geocaching/DataStore.java
index 92517f2..a822b5d 100644
--- a/main/src/cgeo/geocaching/DataStore.java
+++ b/main/src/cgeo/geocaching/DataStore.java
@@ -2344,15 +2344,15 @@ public class DataStore {
Log.d("Database clean: removing " + geocodes.size() + " geocaches from listId=0");
removeCaches(geocodes, LoadFlags.REMOVE_ALL);
}
+
+ // This cleanup needs to be kept in place for about one year so that older log images records are
+ // cleaned. TO BE REMOVED AFTER 2015-03-24.
+ Log.d("Database clean: removing obsolete log images records");
+ database.delete(dbTableLogImages, "log_id NOT IN (SELECT _id FROM " + dbTableLogs + ")", null);
} catch (final Exception e) {
Log.w("DataStore.clean", e);
}
- // This cleanup needs to be kept in place for about one year so that older log images records are
- // cleaned. TO BE REMOVED AFTER 2015-03-24.
- Log.d("Database clean: removing obsolete log images records");
- database.delete(dbTableLogImages, "log_id NOT IN (SELECT _id FROM " + dbTableLogs + ")", null);
-
Log.d("Database clean: finished");
databaseCleaned = true;
}