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

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

index 6b16a99daff8ca1ed337e5644c5d765c71d6a84a..c84df74447631a09983ad4c8b2d1379ba15d9196 100644 (file)
@@ -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))
     {