From 87a2da8c6cda0cfdf30beb2ba20f2709dee06b40 Mon Sep 17 00:00:00 2001 From: Radu Ioan Fericean Date: Tue, 10 Nov 2015 13:29:20 +0200 Subject: [PATCH] fix for psql action trigger model --- data/storage/postgres/create_tariffplan_tables.sql | 2 +- engine/model_helpers.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/data/storage/postgres/create_tariffplan_tables.sql b/data/storage/postgres/create_tariffplan_tables.sql index 1722ff74b..0c2600dc4 100644 --- a/data/storage/postgres/create_tariffplan_tables.sql +++ b/data/storage/postgres/create_tariffplan_tables.sql @@ -192,7 +192,7 @@ CREATE TABLE tp_action_triggers ( tpid VARCHAR(64) NOT NULL, tag VARCHAR(64) NOT NULL, unique_id VARCHAR(64) NOT NULL, - threshold_type char(64) NOT NULL, + threshold_type VARCHAR(64) NOT NULL, threshold_value NUMERIC(20,4) NOT NULL, recurrent BOOLEAN NOT NULL, min_sleep VARCHAR(16) NOT NULL, diff --git a/engine/model_helpers.go b/engine/model_helpers.go index a8254e066..ddc117d33 100644 --- a/engine/model_helpers.go +++ b/engine/model_helpers.go @@ -394,7 +394,7 @@ func (tps TpActions) GetActions() (map[string][]*utils.TPAction, error) { DestinationIds: tpAc.DestinationTags, RatingSubject: tpAc.RatingSubject, Categories: tpAc.Categories, - SharedGroups: tpAc.SharedGroups, + SharedGroups: tpAc.SharedGroups, BalanceWeight: tpAc.BalanceWeight, ExtraParameters: tpAc.ExtraParameters, Weight: tpAc.Weight, @@ -435,7 +435,7 @@ func (tps TpActionTriggers) GetActionTriggers() (map[string][]*utils.TPActionTri BalanceTimingTags: tpAt.BalanceTimingTags, BalanceRatingSubject: tpAt.BalanceRatingSubject, BalanceCategories: tpAt.BalanceCategories, - BalanceSharedGroups: tpAt.BalanceSharedGroups, + BalanceSharedGroups: tpAt.BalanceSharedGroups, BalanceDisabled: tpAt.BalanceDisabled, Weight: tpAt.Weight, ActionsId: tpAt.ActionsTag,