IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_PUBREIMWRIOFFAPPLY' AND KSQL_COL_NAME ='FAPPLYCOSTDEPT')
ALTER TABLE T_ER_PUBREIMWRIOFFAPPLY ADD (FAPPLYCOSTDEPT BIGINT DEFAULT 0 NOT NULL );

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_PUBREIMWRIOFFAPPLY' AND KSQL_COL_NAME ='FSTD_APPLYCOSTCENTER')
ALTER TABLE T_ER_PUBREIMWRIOFFAPPLY ADD (FSTD_APPLYCOSTCENTER BIGINT DEFAULT 0 NOT NULL );

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_WRITEOFFAPPLY' AND KSQL_COL_NAME ='FAPPLYCOSTDEPT')
ALTER TABLE T_ER_WRITEOFFAPPLY ADD (FAPPLYCOSTDEPT BIGINT DEFAULT 0 NOT NULL );

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_WRITEOFFAPPLY' AND KSQL_COL_NAME ='FSTD_APPLYCOSTCENTER')
ALTER TABLE T_ER_WRITEOFFAPPLY ADD (FSTD_APPLYCOSTCENTER BIGINT DEFAULT 0 NOT NULL );