From 2d6438002327ed6d5a1827275c34ab396677a6ce Mon Sep 17 00:00:00 2001 From: Elena Mamontova Date: Fri, 23 Sep 2016 10:05:46 +0300 Subject: [PATCH 1/1] Ticket 37. The changePolicyTimeout field added to the CREATE TABLE tariffs query. --- projects/stargazer/plugins/store/mysql/mysql_store.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/projects/stargazer/plugins/store/mysql/mysql_store.cpp b/projects/stargazer/plugins/store/mysql/mysql_store.cpp index f3539dd6..c6217183 100644 --- a/projects/stargazer/plugins/store/mysql/mysql_store.cpp +++ b/projects/stargazer/plugins/store/mysql/mysql_store.cpp @@ -369,7 +369,8 @@ if(!IsTablePresent("tariffs",sock)) res += "PassiveCost DOUBLE DEFAULT 0.0, Fee DOUBLE DEFAULT 0.0," "Free DOUBLE DEFAULT 0.0, TraffType VARCHAR(10) DEFAULT ''," "period VARCHAR(32) NOT NULL DEFAULT 'month'," - "change_policy VARCHAR(32) NOT NULL DEFAULT 'allow')"; + "change_policy VARCHAR(32) NOT NULL DEFAULT 'allow'," + "change_policy_timeout TIMEZONE NOT NULL DEFAULT '1970-01-01 00:00:00')"; if(MysqlQuery(res.c_str(),sock)) { -- 2.44.2