-- 计提账龄分组添加类型和默认字段
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_AR_ACCRUALAGING' AND KSQL_COL_NAME ='FGROUPTYPE')
 ALTER TABLE T_AR_ACCRUALAGING ADD (FGROUPTYPE VARCHAR(30) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_AR_ACCRUALAGING' AND KSQL_COL_NAME ='FISDEFAULT')
 ALTER TABLE T_AR_ACCRUALAGING ADD (FISDEFAULT CHAR(1) DEFAULT '0' NOT NULL );


