diff options
author | Holger Freyther <zecke@selfish.org> | 2009-04-19 06:35:23 +0000 |
---|---|---|
committer | Holger Freyther <zecke@selfish.org> | 2009-04-19 06:35:23 +0000 |
commit | c2995ea74128aedc9179bd1b4f126c94c7bd14d6 (patch) | |
tree | 94cbc4ccd44c6e80230939bf39b331cdd2ba9c07 | |
parent | 1d506c8a54dfdf37d6aaec7a7eabc429975b0969 (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.
-rw-r--r-- | src/db.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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) { |