Updated CGRID generation when empty.Fix#1552

This commit is contained in:
Tripon Alexandru-Ionut
2019-05-31 17:28:57 +03:00
committed by Dan Christian Bogos
parent ee100d423d
commit 6a0377bbb8
10 changed files with 58 additions and 31 deletions

View File

@@ -28,7 +28,7 @@ CREATE TABLE cdrs (
created_at TIMESTAMP WITH TIME ZONE,
updated_at TIMESTAMP WITH TIME ZONE NULL,
deleted_at TIMESTAMP WITH TIME ZONE NULL,
UNIQUE (cgrid, run_id, origin_id)
UNIQUE (cgrid, run_id)
);
;
DROP INDEX IF EXISTS deleted_at_cp_idx;