/*ALIAS>prop_db*/

/*SQLStart>1961*/
CREATE DOMAIN IMNMASDOMAIN AS INTEGER;
/*SQLStop>*/

/*SQLStart>1962*/
update RDB$RELATION_FIELDS set RDB$FIELD_SOURCE = 'IMNMASDOMAIN'
where (RDB$FIELD_NAME = 'IM_NMAS') and (RDB$RELATION_NAME = 'IMOT')
/*SQLStop>*/

/*SQLStart>1963*/
UPDATE RDB$RELATION_FIELDS F1 
SET F1.RDB$DEFAULT_VALUE = NULL,
    F1.RDB$DEFAULT_SOURCE = NULL
WHERE (F1.RDB$RELATION_NAME = 'IMOT') AND
      (F1.RDB$FIELD_NAME = 'IM_NMAS')
/*SQLStop>*/

/*SQLStart>1964*/
update RDB$RELATION_FIELDS set RDB$NULL_FLAG = NULL
where (RDB$FIELD_NAME = 'IM_NMAS') and (RDB$RELATION_NAME = 'IMOT')
/*SQLStop>*/

/*ManyStart>1965*/
update system_strings set sys_str = '6.7.171.1' where sys_id = 1402;  /*Imot*/
update system_strings set sys_str = '2.1.170.1' where sys_id = 1401;      /*Kasa*/
update system_strings set sys_str = '2.1.3.2' where sys_id = 1403;      /*Incomes*/
update system_strings set sys_str = '6.1.170.1' where sys_id = 1404;      /*Rents*/
/*ManyStop*/