mirror of
https://bitbucket.org/projectswg/cucore.git
synced 2026-10-21 13:03:01 -04:00
Improved SQL query and renamed the two tables
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user