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

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