Fix zero-timestamp error

This commit is contained in:
William committed 2021-08-28 12:46:22 +01:00
1 parent 55321fde1f
commit e200bd670c
2 files changed
+6 -6

No files matched your search

@@ -90,7 +90,7 @@ public class UpgradeDatabase {
+ " ADD `creation_time` timestamp NOT NULL DEFAULT 0;")) {
tableUpdateStatement.execute();
try (PreparedStatement timeSettingStatement = HuskHomes.getConnection().prepareStatement(
"UPDATE " + HuskHomes.getSettings().getHomesDataTable() + " SET `creation_time`=CURRENT_TIMESTAMP;")) {
"UPDATE " + HuskHomes.getSettings().getWarpsDataTable() + " SET `creation_time`=CURRENT_TIMESTAMP;")) {
timeSettingStatement.executeUpdate();
}
plugin.getLogger().info("Database upgrade in progress... (2/2)");