From 25df2b85a69ac360ff3c2f7084f605bfd7f32649 Mon Sep 17 00:00:00 2001 From: DanB Date: Wed, 8 Jul 2015 19:01:14 +0200 Subject: [PATCH] Small fix indexing of the stats --- data/storage/postgres/create_tariffplan_tables.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/storage/postgres/create_tariffplan_tables.sql b/data/storage/postgres/create_tariffplan_tables.sql index 153b4358c..0e05e21c2 100644 --- a/data/storage/postgres/create_tariffplan_tables.sql +++ b/data/storage/postgres/create_tariffplan_tables.sql @@ -328,5 +328,5 @@ CREATE TABLE tp_cdr_stats ( action_triggers VARCHAR(64) NOT NULL, created_at TIMESTAMP ); -CREATE INDEX tpcdrstats_tpid_idx ON tp_cdrstats (tpid); -CREATE INDEX tpcdrstats_idx ON tp_cdrstats (tpid,tag); +CREATE INDEX tpcdrstats_tpid_idx ON tp_cdr_stats (tpid); +CREATE INDEX tpcdrstats_idx ON tp_cdr_stats (tpid,tag);