From 5557e008104be6b01ece7c968a25ad2830717d55 Mon Sep 17 00:00:00 2001 From: Elena Mamontova Date: Wed, 15 Jun 2016 14:26:57 +0300 Subject: [PATCH] Ticket 37. The 'change_policy' field value added when tariff values insert into the 'tariffs' table in the CheckAllTables() function. --- 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 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)) { -- 2.43.2