Fix "no such table" during purge
This commit is contained in:
2
pom.xml
2
pom.xml
@@ -3,7 +3,7 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>AuxProtect</groupId>
|
||||
<artifactId>AuxProtect</artifactId>
|
||||
<version>1.3-pre4</version>
|
||||
<version>1.3-pre5</version>
|
||||
<name>AuxProtect</name>
|
||||
<build>
|
||||
<finalName>${project.artifactId}-${project.version}</finalName>
|
||||
|
||||
@@ -326,7 +326,7 @@ public class SQLManager extends ConnectionPool {
|
||||
|
||||
// Step 2: Insert Data into the Temporary Table
|
||||
for (Table table : Table.values()) {
|
||||
if (table.hasAPEntries()) {
|
||||
if (table.hasAPEntries() && table.exists(plugin)) {
|
||||
execute("INSERT" + (isMySQL() ? "" : " OR") + " IGNORE INTO temp_uids (uid) SELECT uid FROM " + table, connection);
|
||||
if (!table.hasStringTarget()) {
|
||||
execute("INSERT" + (isMySQL() ? "" : " OR") + " IGNORE INTO temp_uids (uid) SELECT target_id FROM " + table, connection);
|
||||
|
||||
Reference in New Issue
Block a user