Merge pull request #1443 from Owain94/loottracker-database-truncate

loottracker: Truncating a table doesn't work
This commit is contained in:
ST0NEWALL
2019-08-24 17:01:58 -04:00
committed by GitHub

View File

@@ -1006,9 +1006,9 @@ public class LootTrackerPlugin extends Plugin
{
lootRecords.clear();
DSLContext dslContext = databaseManager.getDsl();
dslContext.truncate(LOOTTRACKEREVENTS).execute();
dslContext.truncate(LOOTTRACKERLOOT).execute();
dslContext.truncate(LOOTTRACKERLINK).execute();
dslContext.delete(LOOTTRACKEREVENTS).execute();
dslContext.delete(LOOTTRACKERLOOT).execute();
dslContext.delete(LOOTTRACKERLINK).execute();
}
/**