From: Elena Mamontova Date: Wed, 15 Jun 2016 11:19:32 +0000 (+0300) Subject: Ticket 37. The 'change_policy' field added when 'tariffs' table create X-Git-Tag: 2.409~156 X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/2955055088741da83fc54d501e3f49a67b0c6181?hp=c8543b19b95c1be44e9cf72f666f214de9da67f2 Ticket 37. The 'change_policy' field added when 'tariffs' table create 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 6b16a99d..c84df744 100644 --- a/projects/stargazer/plugins/store/mysql/mysql_store.cpp +++ b/projects/stargazer/plugins/store/mysql/mysql_store.cpp @@ -368,7 +368,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')"; + "period VARCHAR(32) NOT NULL DEFAULT 'month'," + "change_policy VARCHAR(32) NOT NULL DEFAULT 'allow')"; if(MysqlQuery(res.c_str(),sock)) {