-- doplnenie contract_item_binding o triedu na pracu s polozkami
BEGIN;

ALTER TABLE contract_item_binding ADD COLUMN handler_class VARCHAR;
COMMENT ON COLUMN contract_item_binding.handler_class IS 'nazov PHP triedy (v ramci globisu), ktora pracu s polozkami tohto typu zastresuje';

UPDATE contract_item_binding SET handler_class='IpfonAccountModel' WHERE id=1;
UPDATE contract_item_binding SET handler_class='IpfonTelnoModel' WHERE id=2;
UPDATE contract_item_binding SET handler_class='IpfonFaxAccountModel' WHERE id=3;
UPDATE contract_item_binding SET handler_class='RegiotvSettopboxModel' WHERE id=4;
UPDATE contract_item_binding SET handler_class='RegiotvContractPackageModel' WHERE id=5;
UPDATE contract_item_binding SET handler_class='ContractItemModel' WHERE id=6;
UPDATE contract_item_binding SET handler_class='IspAccessModel' WHERE id=7;
UPDATE contract_item_binding SET handler_class='IpfonPBXModel' WHERE id=8;

COMMIT;
