mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-hlr.git
synced 2025-11-01 12:43:50 +00:00
Add DB storage for enabling / disabling arbitrary RAT types. So far we have only GERAN-A and UTRAN-Iu, but to be future compatible, implement an arbitrary length list of RAT types: add DB table subscriber_rat. Backwards compatibility: if there is no entry in subscriber_rat, all RAT types shall be allowed. As soon as there is an entry, it can either be false to forbid a RAT or true to still allow a RAT type. Depends: I93850710ab55a605bf61b95063a69682a2899bb1 (libosmocore) Change-Id: I3e399ca8a85421f77a9a15e608413d1507722955
9 lines
245 B
SQL
9 lines
245 B
SQL
|
|
CREATE TABLE subscriber_rat (
|
|
subscriber_id INTEGER, -- subscriber.id
|
|
rat TEXT CHECK(rat in ('GERAN-A', 'UTRAN-Iu')) NOT NULL, -- Radio Access Technology, see enum ran_type
|
|
allowed BOOLEAN NOT NULL DEFAULT 0,
|
|
);
|
|
|
|
PRAGMA user_version = 2;
|