From 799d924776975a7b5624c705dc5180cb51dc774f Mon Sep 17 00:00:00 2001 From: DanB Date: Fri, 5 Dec 2014 19:24:56 +0100 Subject: [PATCH] Increase min_sleep in TP tables from int to bigint since otherwise gets trucated --- data/storage/mysql/create_tariffplan_tables.sql | 2 +- data/storage/postgres/create_tariffplan_tables.sql | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/data/storage/mysql/create_tariffplan_tables.sql b/data/storage/mysql/create_tariffplan_tables.sql index 9d5f8d955..df2169545 100644 --- a/data/storage/mysql/create_tariffplan_tables.sql +++ b/data/storage/mysql/create_tariffplan_tables.sql @@ -194,7 +194,7 @@ CREATE TABLE `tp_action_triggers` ( `threshold_type` char(12) NOT NULL, `threshold_value` DECIMAL(20,4) NOT NULL, `recurrent` BOOLEAN NOT NULL, - `min_sleep` int(11) NOT NULL, + `min_sleep` BIGINT NOT NULL, `destination_tag` varchar(64) NOT NULL, `balance_weight` DECIMAL(8,2) NOT NULL, `balance_expiry_time` varchar(24) NOT NULL, diff --git a/data/storage/postgres/create_tariffplan_tables.sql b/data/storage/postgres/create_tariffplan_tables.sql index 5f05bffc6..608c24dc7 100644 --- a/data/storage/postgres/create_tariffplan_tables.sql +++ b/data/storage/postgres/create_tariffplan_tables.sql @@ -171,7 +171,7 @@ CREATE TABLE tp_action_triggers ( threshold_type char(12) NOT NULL, threshold_value NUMERIC(20,4) NOT NULL, recurrent BOOLEAN NOT NULL, - min_sleep INTEGER NOT NULL, + min_sleep BIGINT NOT NULL, destination_tag VARCHAR(64) NOT NULL, balance_weight NUMERIC(8,2) NOT NULL, balance_expiry_time VARCHAR(24) NOT NULL,