/**Begin D:\PDM_UPGRADE\PDM1\HDM_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HDM_REGBASEBILL_C' AND KSQL_COL_NAME IN ('FBB_D_CMPEMPID')) 
 ALTER TABLE T_HDM_REGBASEBILL_C ADD (FBB_D_CMPEMPID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HDM_REGBASEBILL_C' AND KSQL_COL_NAME IN ('FBA_D_CMPEMPID')) 
 ALTER TABLE T_HDM_REGBASEBILL_C ADD (FBA_D_CMPEMPID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HDM_TRANSFERBILL_C' AND KSQL_COL_NAME IN ('FBB_D_CMPEMPID')) 
 ALTER TABLE T_HDM_TRANSFERBILL_C ADD (FBB_D_CMPEMPID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HDM_TRANSFERBILL_C' AND KSQL_COL_NAME IN ('FBA_D_CMPEMPID')) 
 ALTER TABLE T_HDM_TRANSFERBILL_C ADD (FBA_D_CMPEMPID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HDM_PARTTIMEAPPLYBILL_C' AND KSQL_COL_NAME IN ('FBB_D_CMPEMPID')) 
 ALTER TABLE T_HDM_PARTTIMEAPPLYBILL_C ADD (FBB_D_CMPEMPID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HDM_PARTTIMEAPPLYBILL_C' AND KSQL_COL_NAME IN ('FBA_D_CMPEMPID')) 
 ALTER TABLE T_HDM_PARTTIMEAPPLYBILL_C ADD (FBA_D_CMPEMPID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HDM_PARTTIMEENDBILL_C' AND KSQL_COL_NAME IN ('FBB_D_CMPEMPID')) 
 ALTER TABLE T_HDM_PARTTIMEENDBILL_C ADD (FBB_D_CMPEMPID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HDM_PARTTIMEENDBILL_C' AND KSQL_COL_NAME IN ('FBA_D_CMPEMPID')) 
 ALTER TABLE T_HDM_PARTTIMEENDBILL_C ADD (FBA_D_CMPEMPID BIGINT DEFAULT 0 NOT NULL );

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