Modified order of fields in stordb to include pdd after setuptime, small apier test fixes

This commit is contained in:
DanB
2015-06-08 12:31:26 +02:00
parent 5bfb6da295
commit 05a522a64c
5 changed files with 8 additions and 8 deletions

View File

@@ -19,9 +19,9 @@ CREATE TABLE cdrs_primary (
subject VARCHAR(128) NOT NULL,
destination VARCHAR(128) NOT NULL,
setup_time TIMESTAMP NOT NULL,
pdd NUMERIC(12,9) NOT NULL,
answer_time TIMESTAMP NOT NULL,
usage NUMERIC(30,9) NOT NULL,
pdd NUMERIC(12,9) NOT NULL,
supplier VARCHAR(128) NOT NULL,
disconnect_cause VARCHAR(64) NOT NULL,
created_at TIMESTAMP,
@@ -88,9 +88,9 @@ CREATE TABLE rated_cdrs (
subject VARCHAR(128) NOT NULL,
destination VARCHAR(128) NOT NULL,
setup_time TIMESTAMP NOT NULL,
pdd NUMERIC(12,9) NOT NULL,
answer_time TIMESTAMP NOT NULL,
usage NUMERIC(30,9) NOT NULL,
pdd NUMERIC(12,9) NOT NULL,
supplier VARCHAR(128) NOT NULL,
disconnect_cause VARCHAR(64) NOT NULL,
cost NUMERIC(20,4) DEFAULT NULL,