mirror of
https://github.com/ProjectSWGCore/Holocore.git
synced 2026-10-11 01:13:02 -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