/**Begin D:\PDM_UPGRADE\PDM1\CAS_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_CAS_CLAIMDETAILENTRY' AND KSQL_COL_NAME IN ('FPRODUCTLINE'))
ALTER TABLE T_CAS_CLAIMDETAILENTRY ADD (FPRODUCTLINE BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_CAS_CLAIMDETAILENTRY' AND KSQL_COL_NAME IN ('FCOSTCENTERID'))
ALTER TABLE T_CAS_CLAIMDETAILENTRY ADD (FCOSTCENTERID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_CAS_CLAIMNOTICEBILL_E' AND KSQL_COL_NAME IN ('FPRODUCTLINE'))
ALTER TABLE T_CAS_CLAIMNOTICEBILL_E ADD (FPRODUCTLINE BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_CAS_CLAIMNOTICEBILL_E' AND KSQL_COL_NAME IN ('FCOSTCENTERID'))
ALTER TABLE T_CAS_CLAIMNOTICEBILL_E ADD (FCOSTCENTERID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_CAS_PAYMENTBILLENTRY' AND KSQL_COL_NAME IN ('FPRODUCTLINE'))
ALTER TABLE T_CAS_PAYMENTBILLENTRY ADD (FPRODUCTLINE BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_CAS_RECBILLCHANGBENTRY' AND KSQL_COL_NAME IN ('FBCOSTCENTER'))
ALTER TABLE T_CAS_RECBILLCHANGBENTRY ADD (FBCOSTCENTER BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_CAS_RECBILLCHANGBENTRY' AND KSQL_COL_NAME IN ('FBPRODUCTLINE'))
ALTER TABLE T_CAS_RECBILLCHANGBENTRY ADD (FBPRODUCTLINE BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_CAS_RECEIVINGBILLENTRY' AND KSQL_COL_NAME IN ('FPRODUCTLINE'))
ALTER TABLE T_CAS_RECEIVINGBILLENTRY ADD (FPRODUCTLINE BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_CAS_RECBILLCHANGENTRY' AND KSQL_COL_NAME IN ('FPRODUCTLINE'))
ALTER TABLE T_CAS_RECBILLCHANGENTRY ADD (FPRODUCTLINE BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_CAS_CLAIMNOTICEBILLP_E' AND KSQL_COL_NAME IN ('FPPRODUCTLINE'))
ALTER TABLE T_CAS_CLAIMNOTICEBILLP_E ADD (FPPRODUCTLINE BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_CAS_CLAIMNOTICEBILLP_E' AND KSQL_COL_NAME IN ('FPCOSTCENTER'))
ALTER TABLE T_CAS_CLAIMNOTICEBILLP_E ADD (FPCOSTCENTER BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_CAS_CLAIMPAYENTRY' AND KSQL_COL_NAME IN ('FPPRODUCTLINE'))
ALTER TABLE T_CAS_CLAIMPAYENTRY ADD (FPPRODUCTLINE BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_CAS_CLAIMPAYENTRY' AND KSQL_COL_NAME IN ('FPCOSTCENTER'))
ALTER TABLE T_CAS_CLAIMPAYENTRY ADD (FPCOSTCENTER BIGINT DEFAULT 0 NOT NULL );

/**End D:\PDM_UPGRADE\PDM1\CAS_table.sql **/
