SET autocommit=0;

USE provisioning

SELECT id FROM voip_preferences where attribute='language' INTO @pref_id;

INSERT INTO voip_preferences_enum
(preference_id, label, value, usr_pref, dom_pref, peer_pref, contract_pref, prof_pref, default_val)
VALUES
(@pref_id, 'Russian', 'ru', 1, 1, 0, 0, 0, 0);

commit;