mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-12-23 09:37:54 +01:00
Added DEFAULT 0 to the modify queries
This commit is contained in:
parent
31987a4fa5
commit
88c0aa64c9
@ -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) {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user