aboutsummaryrefslogtreecommitdiffstats
path: root/sql
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2017-10-25 00:26:29 +0200
committerHarald Welte <laforge@gnumonks.org>2017-10-28 16:49:33 +0000
commit88c91f6fb233e4400ee781d63ffb2bdb5599e58d (patch)
treed4e9e67372f0ea212eb975609cb2c6b1d3421655 /sql
parent7750d2cedc5403cd1d756d1d30a8e08fccd12f74 (diff)
cosmetic: sql/hlr.sql: move comments
By moving the comments inside the table row definitions, they are dumped back during 'sqlite3 hlr.db .dump'. When they are between SQL statements like before this patch, the comments are lost. Tweak wording. Change-Id: I280c2e2d3e9b7f1dc632722724d9e1c54d041820
Diffstat (limited to 'sql')
-rw-r--r--sql/hlr.sql5
1 files changed, 2 insertions, 3 deletions
diff --git a/sql/hlr.sql b/sql/hlr.sql
index 696cf1c..80eb3e5 100644
--- a/sql/hlr.sql
+++ b/sql/hlr.sql
@@ -1,6 +1,5 @@
---modelled roughly after TS 23.008 version 13.3.0
-
CREATE TABLE IF NOT EXISTS subscriber (
+-- OsmoHLR's DB scheme is modelled roughly after TS 23.008 version 13.3.0
id INTEGER PRIMARY KEY,
-- Chapter 2.1.1.1
imsi VARCHAR(15) UNIQUE NOT NULL,
@@ -45,8 +44,8 @@ CREATE TABLE IF NOT EXISTS subscriber_apn (
apn VARCHAR(256) NOT NULL
);
--- Chapter 2.1.3
CREATE TABLE IF NOT EXISTS subscriber_multi_msisdn (
+-- Chapter 2.1.3
subscriber_id INTEGER, -- subscriber.id
msisdn VARCHAR(15) NOT NULL
);