mirror of
https://github.com/GeorgH93/Minepacks.git
synced 2025-03-13 13:39:22 +01:00
Fix error when using MySQL and auto cleanup
This commit is contained in:
parent
56f3f8b0af
commit
53bf6b7a9f
@ -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()");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user