Fix error when using MySQL and auto cleanup

This commit is contained in:
GeorgH93 2020-10-31 14:09:11 +01:00
parent 56f3f8b0af
commit 53bf6b7a9f
No known key found for this signature in database
GPG Key ID: D1630D37F9E4B3C8
2 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ public MySQL(@NotNull Minepacks plugin, @Nullable ConnectionProvider connectionP
@Override
protected void updateQuerysForDialect()
{
queryDeleteOldBackpacks = "DELETE FROM `{TableBackpacks}` WHERE `{FieldBPLastUpdate}` + INTERVAL {VarMaxAge} day < NOW()";
queryDeleteOldBackpacks = "DELETE FROM {TableBackpacks} WHERE {FieldBPLastUpdate} + INTERVAL {VarMaxAge} day < NOW()";
queryUpdateBp = queryUpdateBp.replaceAll("\\{NOW}", "NOW()");
}

View File

@ -7,7 +7,7 @@
<packaging>pom</packaging>
<properties>
<revision>2.3.19</revision>
<revision>2.3.20-SNAPSHOT</revision>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
</properties>