aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSylvain Munaut <tnt@246tNt.com>2009-12-27 19:26:12 +0100
committerHarald Welte <laforge@netfilter.org>2010-01-03 10:16:15 +0100
commit77d334ac4d64fec8a0708160fc2753c6354eb869 (patch)
tree66e8d454fe4d39f8d90e4c91deefda6945e7e520
parentdeebb113ac23ffc8b929828f940054c85a695e7b (diff)
db: Fix type of algorithm_id (NUMERIC -> INTEGER)
This fixes a DB warning and no need for NUMERIC here. Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
-rw-r--r--openbsc/src/db.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/openbsc/src/db.c b/openbsc/src/db.c
index 57ea9baf6..bfc7d9310 100644
--- a/openbsc/src/db.c
+++ b/openbsc/src/db.c
@@ -126,8 +126,8 @@ static char *create_stmts[] = {
")",
"CREATE TABLE IF NOT EXISTS AuthKeys ("
"id INTEGER PRIMARY KEY AUTOINCREMENT, "
- "subscriber_id NUMERIC UNIQUE NOT NULL, "
- "algorithm_id NUMERIC NOT NULL, "
+ "subscriber_id INTEGER UNIQUE NOT NULL, "
+ "algorithm_id INTEGER NOT NULL, "
"a3a8_ki BLOB "
")",
"CREATE TABLE IF NOT EXISTS AuthTuples ("