diff --git a/src/ac/db.c b/src/ac/db.c index 5268a2f3..8e5b64b2 100644 --- a/src/ac/db.c +++ b/src/ac/db.c @@ -24,7 +24,12 @@ const char * init_tables = "\ upd INTEGER,\ PRIMARY KEY(wtpid,id,sub_id)\ );\ + CREATE TABLE IF NOT EXISTS wlans (wlanid INTEGER PRIMARY KEY);\ + CREATE TABLE IF NOT EXISTS wlanprops (wlanid INTEGER, id TEXT NOT NULL, val TEXT, PRIMARY KEY(wlanid,id));\ "; + + + int db_init() {