mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-22 23:58:44 +05:00
Make StatQueues and StatQueueProfiles storable in MySQL and Postgres
This commit is contained in:
committed by
Dan Christian Bogos
parent
bb5d589dce
commit
dcdf55e5d4
@@ -87,3 +87,24 @@ CREATE TABLE resources (
|
||||
UNIQUE (tenant, id)
|
||||
);
|
||||
CREATE UNIQUE INDEX resources_idx ON resources ("id");
|
||||
|
||||
DROP TABLE IF EXISTS stat_queue_profiles;
|
||||
CREATE TABLE stat_queue_profiles (
|
||||
pk SERIAL PRIMARY KEY,
|
||||
tenant VARCHAR(40) NOT NULL,
|
||||
id VARCHAR(64) NOT NULL,
|
||||
stat_queue_profile JSONB NOT NULL,
|
||||
UNIQUE (tenant, id)
|
||||
);
|
||||
CREATE UNIQUE INDEX stat_queue_profiles_idx ON stat_queue_profiles ("id");
|
||||
|
||||
|
||||
DROP TABLE IF EXISTS stat_queues;
|
||||
CREATE TABLE stat_queues (
|
||||
pk SERIAL PRIMARY KEY,
|
||||
tenant VARCHAR(40) NOT NULL,
|
||||
id VARCHAR(64) NOT NULL,
|
||||
stat_queue JSONB NOT NULL,
|
||||
UNIQUE (tenant, id)
|
||||
);
|
||||
CREATE UNIQUE INDEX stat_queues_idx ON stat_queues ("id");
|
||||
|
||||
Reference in New Issue
Block a user