/*ALIAS>prop_db*/

/*SQLStart>2887*/
ALTER TABLE Documents
DROP CONSTRAINT DOC_VALUTA_RANGE;
/*SQLStop*/

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

/*SQLStart>2889*/
ALTER TABLE Anecs
DROP CONSTRAINT ANECS_VALUTA_RANGE;
/*SQLStop*/

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

/*SQLStart>2891*/
UPDATE system_strings SET sys_str = '6.7.246.1' WHERE sys_id = 1401;
/*SQLStop*/