fix for psql action trigger model

This commit is contained in:
Radu Ioan Fericean
2015-11-10 13:29:20 +02:00
parent cd6007e501
commit 87a2da8c6c
2 changed files with 3 additions and 3 deletions

View File

@@ -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,

View File

@@ -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,