Use modern column widths if upgrading from very old version
This commit is contained in:
1 parent
d50c48f79d
commit
2ff6da183b
1 file changed
+1
-1
@@ -168,7 +168,7 @@ class Updater
|
|||||||
final Statement st = conn.createStatement();
|
final Statement st = conn.createStatement();
|
||||||
for (final WorldConfig wcfg : getLoggedWorlds())
|
for (final WorldConfig wcfg : getLoggedWorlds())
|
||||||
if (wcfg.isLogging(Logging.KILL))
|
if (wcfg.isLogging(Logging.KILL))
|
||||||
st.execute("ALTER TABLE `" + wcfg.table + "-kills` ADD (x SMALLINT NOT NULL DEFAULT 0, y TINYINT UNSIGNED NOT NULL DEFAULT 0, z SMALLINT NOT NULL DEFAULT 0)");
|
st.execute("ALTER TABLE `" + wcfg.table + "-kills` ADD (x MEDIUMINT NOT NULL DEFAULT 0, y SMALLINT NOT NULL DEFAULT 0, z MEDIUMINT NOT NULL DEFAULT 0)");
|
||||||
st.close();
|
st.close();
|
||||||
conn.close();
|
conn.close();
|
||||||
} catch (final SQLException ex) {
|
} catch (final SQLException ex) {
|
||||||
|
|||||||
Reference in new issue
Block a user