From: Elena Mamontova Date: Fri, 23 Sep 2016 10:43:20 +0000 (+0300) Subject: Ticket 37. The change-policy-timeout field added to the INSERT INTO X-Git-Tag: 2.409~79 X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/3f65f48338f94ea450701d55e7d0fe61826680b8 Ticket 37. The change-policy-timeout field added to the INSERT INTO tariffs query. --- diff --git a/projects/stargazer/plugins/store/mysql/mysql_store.cpp b/projects/stargazer/plugins/store/mysql/mysql_store.cpp index c6217183..fb8b085c 100644 --- a/projects/stargazer/plugins/store/mysql/mysql_store.cpp +++ b/projects/stargazer/plugins/store/mysql/mysql_store.cpp @@ -425,7 +425,7 @@ if(!IsTablePresent("tariffs",sock)) res += "PassiveCost=0.0, Fee=10.0, Free=0,"\ "SinglePrice0=1, SinglePrice1=1,PriceDayA1=0.75,PriceDayB1=0.75,"\ "PriceNightA0=1.0,PriceNightB0=1.0,TraffType='up+down',period='month',"\ - "change_policy='allow'"; + "change_policy='allow', change_policy_timeout='1970-01-01 00:00:00'"; if(MysqlQuery(res.c_str(),sock)) {