提交 d75b84d9 authored 作者: blu's avatar blu

init

上级 6891f5af
...@@ -126,6 +126,7 @@ namespace DB { ...@@ -126,6 +126,7 @@ namespace DB {
// ex: 1, sn, ILS112233, NULL, NULL // ex: 1, sn, ILS112233, NULL, NULL
// 2, evmgr, NULL, 1.2, 2019-09-02 // 2, evmgr, NULL, 1.2, 2019-09-02
// 3, evpuller, NULL, 1.2, 2019-09-02 // 3, evpuller, NULL, 1.2, 2019-09-02
// 4, evml-motion, NULL, 1.2, 2019-09-02
// ipc: id, user, passwd, addr, status // ipc: id, user, passwd, addr, status
// ex: 1, admin, FWBWTU, 172.31.0.51, 0 // ex: 1, admin, FWBWTU, 172.31.0.51, 0
...@@ -139,12 +140,13 @@ namespace DB { ...@@ -139,12 +140,13 @@ namespace DB {
int setLocalConfig(json config, const char* fileName) { int setLocalConfig(json config, const char* fileName) {
int ret; int ret;
string stmt; string stmt;
// init tables; // init tables
stmt = "create table if not exists info(cls text, value text, version text, update datetime, primary key (cls, value));"; stmt = "create table if not exists info(cls text, value text, version text, update datetime, primary key cls);";
ret = exec(NULL, fileName, stmt.c_str(), NULL); ret = exec(NULL, fileName, stmt.c_str(), NULL);
if(ret != SQLITE_OK) { if(ret != SQLITE_OK) {
return ret; return ret;
} }
//
} }
int getLocalConfig(json config) { int getLocalConfig(json config) {
......
hmac @ d724d3d7
Subproject commit d724d3d705f929ed2a80a7d7531bfe200ba8e4d1
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论