蓄电池监控管理平台数据库初始化程序
DELL
2025-04-16 4484baa21d400f5d865ea7a8404f76ca0a16d0b4
修复op_cmd字段加错表bug
2个文件已修改
2 ■■■ 已修改文件
BattMonitor_DB_Builder/bin/com/sql/util/Db_Abe_Ram.class 补丁 | 查看 | 原始文档 | blame | 历史
BattMonitor_DB_Builder/src/com/sql/util/Db_Abe_Ram.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
BattMonitor_DB_Builder/bin/com/sql/util/Db_Abe_Ram.class
Binary files differ
BattMonitor_DB_Builder/src/com/sql/util/Db_Abe_Ram.java
@@ -188,7 +188,7 @@
            sql.sqlMysqlExecute("COMMENT ON CONSTRAINT idx_abe_id ON " + Sql_Mysql.Abe_State_Table + " IS '设备ID';");
            
            //添加空hi命令字段
            sql.sqlMysqlExecute("ALTER TABLE " + Sql_Mysql.Abe_Inf_Table + " ADD COLUMN IF NOT EXISTS op_cmd integer NOT NULL DEFAULT 0;");
            sql.sqlMysqlExecute("ALTER TABLE " + Sql_Mysql.Abe_State_Table + " ADD COLUMN IF NOT EXISTS op_cmd integer NOT NULL DEFAULT 0;");
            sql.sqlMysqlExecute("COMMENT ON COLUMN " + Sql_Mysql.Abe_State_Table + ".op_cmd IS '控制命令';");
        } catch (Exception e) {
            e.printStackTrace();