mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-20 14:48:43 +05:00
Make Filters and RouteProfiles storable in MySQL and Postgres
This commit is contained in:
committed by
Dan Christian Bogos
parent
61e7bacab1
commit
c51d3f27de
@@ -130,3 +130,25 @@ CREATE TABLE thresholds (
|
||||
UNIQUE (tenant, id)
|
||||
);
|
||||
CREATE UNIQUE INDEX thresholds_idx ON thresholds ("id");
|
||||
|
||||
|
||||
DROP TABLE IF EXISTS filters;
|
||||
CREATE TABLE filters (
|
||||
pk SERIAL PRIMARY KEY,
|
||||
tenant VARCHAR(40) NOT NULL,
|
||||
id VARCHAR(64) NOT NULL,
|
||||
filter JSONB NOT NULL,
|
||||
UNIQUE (tenant, id)
|
||||
);
|
||||
CREATE INDEX filters_idx ON filters ("id");
|
||||
|
||||
|
||||
DROP TABLE IF EXISTS route_profiles;
|
||||
CREATE TABLE route_profiles (
|
||||
pk SERIAL PRIMARY KEY,
|
||||
tenant VARCHAR(40) NOT NULL,
|
||||
id VARCHAR(64) NOT NULL,
|
||||
route_profile JSONB NOT NULL,
|
||||
UNIQUE (tenant, id)
|
||||
);
|
||||
CREATE UNIQUE INDEX route_profiles_idx ON route_profiles ("id");
|
||||
|
||||
Reference in New Issue
Block a user