Ticket 37. The changePolicyTimeout field added to the CREATE TABLE
authorElena Mamontova <helenh463@gmail.com>
Fri, 23 Sep 2016 07:05:46 +0000 (10:05 +0300)
committerElena Mamontova <helenh463@gmail.com>
Fri, 23 Sep 2016 07:05:46 +0000 (10:05 +0300)
tariffs query.

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

index f3539dd..c621718 100644 (file)
@@ -369,7 +369,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',"
-        "change_policy VARCHAR(32) NOT NULL DEFAULT 'allow')";
+        "change_policy VARCHAR(32) NOT NULL DEFAULT 'allow',"
+        "change_policy_timeout TIMEZONE NOT NULL DEFAULT '1970-01-01 00:00:00')";
     
     if(MysqlQuery(res.c_str(),sock))
     {