Improved SQL query and renamed the two tables

This commit is contained in:
Obique PSWG
2015-07-25 15:34:13 -05:00
parent 5b2f3b63a8
commit f874c951c4
3 changed files with 4 additions and 4 deletions
@@ -66,7 +66,7 @@ public class RelationalServerData extends RelationalDatabase {
long sdbModified = sdb.lastModified();
long imported = getLastImported(table);
if (sdbModified > imported) {
updateQuery("DROP TABLE " + table);
updateQuery("DROP TABLE IF EXISTS " + table);
importFromSdb(table, sdb);
updateLastImported(table, System.currentTimeMillis());
}