aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-01-30 13:47:22 +0100
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-02-01 05:07:36 +0100
commit45c806e773fac23124ac5ec1670af2976780b399 (patch)
treeef2c567ce484844403a207389b0c4f54a164d3b4
parent7bae179417bbbaa130eab627772890fad4ce15a1 (diff)
sql: fix 3g_auc's column K data type
K is the SIM card's 128bit secret key, so the type should be VARCHAR like the other key columns. The db code already reads the column as text and parses as hex, so a VARCHAR column matches that. Change-Id: Iaa8d33e303760bd15dcb7dc8bb8b9b24bf6c8f14
-rw-r--r--sql/hlr.sql2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/hlr.sql b/sql/hlr.sql
index 5f0950c..ab9d173 100644
--- a/sql/hlr.sql
+++ b/sql/hlr.sql
@@ -60,7 +60,7 @@ CREATE TABLE auc_2g (
CREATE TABLE auc_3g (
subscriber_id INTEGER PRIMARY KEY, -- subscriber.id
algo_id_3g INTEGER NOT NULL,
- k INTEGER NOT NULL,
+ k VARCHAR(32) NOT NULL,
op VARCHAR,
opc VARCHAR,
sqn INTEGER