From: Elena Mamontova Date: Wed, 15 Jun 2016 11:26:57 +0000 (+0300) Subject: Ticket 37. The 'change_policy' field value added when tariff values insert into X-Git-Tag: 2.409~155 X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/5557e008104be6b01ece7c968a25ad2830717d55 Ticket 37. The 'change_policy' field value added when tariff values insert into the 'tariffs' table in the CheckAllTables() function. --- diff --git a/projects/stargazer/plugins/store/mysql/mysql_store.cpp b/projects/stargazer/plugins/store/mysql/mysql_store.cpp index c84df744..f2020af0 100644 --- a/projects/stargazer/plugins/store/mysql/mysql_store.cpp +++ b/projects/stargazer/plugins/store/mysql/mysql_store.cpp @@ -423,7 +423,8 @@ 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'"; + "PriceNightA0=1.0,PriceNightB0=1.0,TraffType='up+down',period='month',"\ + "change_policy='allow'"; if(MysqlQuery(res.c_str(),sock)) {