Fix "no such table" during purge

This commit is contained in:
Heliosares
2024-03-06 18:56:36 -05:00
parent 1672ebd378
commit 24abe0f3b6
2 changed files with 2 additions and 2 deletions

View File

@@ -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>

View File

@@ -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);