aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHolger Freyther <zecke@selfish.org>2009-04-19 06:35:23 +0000
committerHolger Freyther <zecke@selfish.org>2009-04-19 06:35:23 +0000
commitc2995ea74128aedc9179bd1b4f126c94c7bd14d6 (patch)
tree94cbc4ccd44c6e80230939bf39b331cdd2ba9c07 /src
parent1d506c8a54dfdf37d6aaec7a7eabc429975b0969 (diff)
[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.
Diffstat (limited to 'src')
-rw-r--r--src/db.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/db.c b/src/db.c
index 87b41bd85..f2f691e11 100644
--- a/src/db.c
+++ b/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) {