Unified storage SetCdr and SetRatedCdr into SetCDR, engine/storage_cdrs_it_test should automate testing for the supported StoredDb drivers

This commit is contained in:
DanB
2015-12-13 17:28:55 +01:00
parent 16beb55df8
commit eb2e8f6876
23 changed files with 324 additions and 3054 deletions

View File

@@ -24,15 +24,15 @@ CREATE TABLE cdrs (
usage NUMERIC(30,9) NOT NULL,
supplier VARCHAR(128) NOT NULL,
disconnect_cause VARCHAR(64) NOT NULL,
extra_fields jsonb NOT NULL,
cost NUMERIC(20,4) DEFAULT NULL,
timespans jsonb,
extra_fields jsonb,
cost_source VARCHAR(64) NOT NULL,
cost NUMERIC(20,4) DEFAULT NULL,
cost_details jsonb,
extra_info text,
created_at TIMESTAMP,
updated_at TIMESTAMP,
deleted_at TIMESTAMP,
UNIQUE (cgrid)
UNIQUE (cgrid, run_id)
);
;
DROP INDEX IF EXISTS deleted_at_cp_idx;