From: Elena Mamontova Date: Tue, 11 Oct 2016 15:38:03 +0000 (+0300) Subject: Ticket 37. The 'change_policy_timeout' field added for UPDATE tariffs SET X-Git-Tag: 2.409~66 X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/479d1656ef745f0bb51e0e6226b0d98cc6d6a8f1?ds=inline Ticket 37. The 'change_policy_timeout' field added for UPDATE tariffs SET query in the if(schemaversion > 1) construction. --- diff --git a/projects/stargazer/plugins/store/mysql/mysql_store.cpp b/projects/stargazer/plugins/store/mysql/mysql_store.cpp index 2600c859..198b5f3b 100644 --- a/projects/stargazer/plugins/store/mysql/mysql_store.cpp +++ b/projects/stargazer/plugins/store/mysql/mysql_store.cpp @@ -1766,7 +1766,8 @@ if (schemaVersion > 0) res += ", Period='" + TARIFF::PeriodToString(td.tariffConf.period) + "'"; if (schemaVersion > 1) - res += ", change_policy='" + TARIFF::ChangePolicyToString(td.tariffConf.changePolicy) + "'"; + res += ", change_policy='" + TARIFF::ChangePolicyToString(td.tariffConf.changePolicy) + "'"\ + ", change_policy_timeout='" + formatTime(td.tariffConf.changePolicy) + "'"; strprintf(¶m, " WHERE name='%s' LIMIT 1", tariffName.c_str()); res += param;