mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-03 06:28:49 +00:00
Fix zero-timestamp error
This commit is contained in:
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)");
|
||||
|
||||
Reference in new issue
Block a user