/*ALIAS>prop_db*/

/*SQLStart>2882*/
UPDATE Documents
SET DA_VALUTA = null
WHERE (DA_VALUTA < 0 OR DA_VALUTA > 2)
/*SQLStop*/

/*SQLStart>2883*/
ALTER TABLE Documents
ADD CONSTRAINT DOC_VALUTA_RANGE
CHECK (DA_VALUTA >= 0 and DA_VALUTA <= 2);
/*SQLStop*/

/*SQLStart>2884*/
UPDATE Anecs
SET AN_VALUTA = null
WHERE (AN_VALUTA < 0 OR AN_VALUTA > 2)
/*SQLStop*/

/*SQLStart>2885*/
ALTER TABLE Anecs
ADD CONSTRAINT ANECS_VALUTA_RANGE
CHECK (AN_VALUTA >= 0 and AN_VALUTA <= 2);
/*SQLStop*/

/*SQLStart>2886*/
UPDATE system_strings SET sys_str = '6.7.245.1' WHERE sys_id = 1401;
/*SQLStop*/