Fix table update and to not break on update issues
This commit is contained in:
1 parent
dde8dc8289
commit
e181c85647
1 file changed
+1
-2
@@ -735,13 +735,12 @@ class Updater {
|
||||
try {
|
||||
conn.setAutoCommit(true);
|
||||
final Statement st = conn.createStatement();
|
||||
st.execute("ALTER TABLE `" + wcfg.table + "-entities` KEY entityid (entityid)");
|
||||
st.execute("ALTER TABLE `" + wcfg.table + "-entities` ADD KEY entityid (entityid)");
|
||||
logblock.getLogger().info("Added index for table " + wcfg.table + "-entities");
|
||||
st.close();
|
||||
conn.close();
|
||||
} catch (final SQLException ex) {
|
||||
logblock.getLogger().log(Level.SEVERE, "[Updater] Error: ", ex);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
config.set("version", "1.16.0");
|
||||
|
||||
Reference in new issue
Block a user