/*ALIAS>prop_db*/

/*SQLStart>1570*/
ALTER TABLE TAXORDERS
ADD TO_TYPE SMALLINT
DEFAULT 1 
/*SQLStop>1570*/

/*SQLStart>1571*/
UPDATE taxorders SET to_type = 1
/*SQLStop>1571*/
 
/*SQLStart>1572*/
ALTER TABLE TAXORDERS
ADD TO_INTEREST_LEADTAXID INTEGER
DEFAULT -1
/*SQLStop>1572*/

/*SQLStart>1573*/
UPDATE taxorders SET TO_INTEREST_LEADTAXID = -1, TO_LEADTAXID = -1
/*SQLStop>1573*/