query += " where pk_tariff = ?";
+ st->Prepare(query);
st->Set(1, td.tariffConf.fee);
st->Set(2, td.tariffConf.free);
st->Set(3, td.tariffConf.passiveCost);
if (schemaVersion > 1)
st->Set(6, TARIFF::ChangePolicyToString(td.tariffConf.changePolicy));
+ st->Set(7, id);
st->Execute();
st->Close();