[db] Introduce a VLR database here
This is not a proper VLR yet, specially the (subscriber_)id used might not be the proper one in a real network.
This commit is contained in:
parent
1d506c8a54
commit
c2995ea741
7
src/db.c
7
src/db.c
|
@ -79,6 +79,13 @@ static char *create_stmts[] = {
|
|||
"header NUMERIC, "
|
||||
"text TEXT NOT NULL "
|
||||
")",
|
||||
"CREATE TABLE IF NOT EXISTS VLR ("
|
||||
"id INTEGER PRIMARY KEY AUTOINCREMENT, "
|
||||
"created TIMESTAMP NOT NULL, "
|
||||
"updated TIMESTAMP NOT NULL, "
|
||||
"subscriber_id NUMERIC UNIQUE NOT NULL, "
|
||||
"last_bts NUMERIC NOT NULL "
|
||||
")",
|
||||
};
|
||||
|
||||
void db_error_func(dbi_conn conn, void* data) {
|
||||
|
|
Loading…
Reference in New Issue