-- 租赁合同增加字段：租赁负债原值
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_FA_LEASE_CONTRACT_NEW' AND KSQL_COL_NAME ='FLEASELIABORI') 
 ALTER TABLE T_FA_LEASE_CONTRACT_NEW ADD (FLEASELIABORI DECIMAL(19,4) DEFAULT 0 NOT NULL );

-- 租赁合同.付款计划增加字段：未付租金
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_FA_LEASE_PAY_PLAN' AND KSQL_COL_NAME ='FUNPAIDRENT') 
 ALTER TABLE T_FA_LEASE_PAY_PLAN ADD (FUNPAIDRENT DECIMAL(19,4) DEFAULT 0 NOT NULL );