From 479d1656ef745f0bb51e0e6226b0d98cc6d6a8f1 Mon Sep 17 00:00:00 2001 From: Elena Mamontova Date: Tue, 11 Oct 2016 18:38:03 +0300 Subject: [PATCH 1/1] Ticket 37. The 'change_policy_timeout' field added for UPDATE tariffs SET query in the if(schemaversion > 1) construction. --- projects/stargazer/plugins/store/mysql/mysql_store.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.44.2