query if schemaVersion > 1, in st->Set(7, id) 7 changed to 8 in
SaveTariff() function.
if (schemaVersion > 0)
query += ", period = ?";
if (schemaVersion > 1)
if (schemaVersion > 0)
query += ", period = ?";
if (schemaVersion > 1)
- query += ", change_policy = ?";
+ query += ", change_policy = ?, \
+ change_policy_timeout = ?";
query += " where pk_tariff = ?";
query += " where pk_tariff = ?";
st->Set(7, policyTimeout);
}
st->Set(7, policyTimeout);
}
st->Execute();
st->Close();
st->Execute();
st->Close();