Added DEFAULT 0 to the modify queries

This commit is contained in:
Rsl1122 2017-07-25 20:47:37 +03:00
parent 31987a4fa5
commit 88c0aa64c9

View File

@ -63,9 +63,9 @@ public class TPSTable extends Table {
private void alterTablesV6() {
try {
if (usingMySQL) {
execute("ALTER TABLE " + tableName + " ADD " + columnCPUUsage + " double NOT NULL");
execute("ALTER TABLE " + tableName + " ADD " + columnCPUUsage + " double NOT NULL DEFAULT 0");
} else {
execute("ALTER TABLE " + tableName + " ADD COLUMN " + columnCPUUsage + " double NOT NULL");
execute("ALTER TABLE " + tableName + " ADD COLUMN " + columnCPUUsage + " double NOT NULL DEFAULT 0");
}
} catch (SQLException e) {