蓄电池监控管理平台数据库初始化程序
whyclj
2018-12-17 6c55a7273a4ed80f9ae600be0f5160288b189f49
修改
2个文件已修改
10 ■■■■■ 已修改文件
BattMonitor_DB_Builder/bin/com/sql/Sql_Mysql.class 补丁 | 查看 | 原始文档 | blame | 历史
BattMonitor_DB_Builder/src/com/sql/Sql_Mysql.java 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
BattMonitor_DB_Builder/bin/com/sql/Sql_Mysql.class
Binary files differ
BattMonitor_DB_Builder/src/com/sql/Sql_Mysql.java
@@ -594,6 +594,16 @@
                        }
                        
                //---------------------------------------------------------------------------------------------//
                //-------------------------------- 2018-12-12 by lijun   (  binf表中添加  charge_curr_max  最大充电电流)------------------------------------//
                        res = sqlMysqlQuery("SELECT * FROM information_schema.columns"
                                + " WHERE table_schema='db_battinf'"
                                + " AND table_name='tb_battinf'"
                                + " AND column_name='charge_curr_max'");
                        if(false == res.next()) {
                            sqlMysqlExecute("ALTER TABLE " + BattInf_Table
                                            + " ADD COLUMN `charge_curr_max` float DEFAULT '20'");
                        }
                //---------------------------------------------------------------------------------------------//
                        
                        
        //---------------------------------------------------------------------------------------------//