]> git.stg.codes - stg.git/commitdiff
Ticket 37. The 'change_policy' field value added when tariff values insert into
authorElena Mamontova <helenh463@gmail.com>
Wed, 15 Jun 2016 11:26:57 +0000 (14:26 +0300)
committerElena Mamontova <helenh463@gmail.com>
Wed, 15 Jun 2016 11:26:57 +0000 (14:26 +0300)
the 'tariffs' table in the CheckAllTables() function.

projects/stargazer/plugins/store/mysql/mysql_store.cpp

index c84df74447631a09983ad4c8b2d1379ba15d9196..f2020af00f000692a92ab3ad7677ace84541a3df 100644 (file)
@@ -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,"\
     
     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))
     {
     
     if(MysqlQuery(res.c_str(),sock))
     {