/**Begin D:\PDM_UPGRADE\PDM1\HOM_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HOM_ONBRDBILL_C' AND KSQL_COL_NAME IN ('FBB_P_TID')) 
 ALTER TABLE T_HOM_ONBRDBILL_C ADD (FBB_P_TID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HOM_ONBRDBILL_C' AND KSQL_COL_NAME IN ('FBA_P_TID')) 
 ALTER TABLE T_HOM_ONBRDBILL_C ADD (FBA_P_TID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HOM_ONBRDBILL_C' AND KSQL_COL_NAME IN ('FBB_E_TID')) 
 ALTER TABLE T_HOM_ONBRDBILL_C ADD (FBB_E_TID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HOM_ONBRDBILL_C' AND KSQL_COL_NAME IN ('FBA_E_TID')) 
 ALTER TABLE T_HOM_ONBRDBILL_C ADD (FBA_E_TID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HOM_ONBRDBILL_C' AND KSQL_COL_NAME IN ('FBB_D_TID')) 
 ALTER TABLE T_HOM_ONBRDBILL_C ADD (FBB_D_TID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HOM_ONBRDBILL_C' AND KSQL_COL_NAME IN ('FBA_D_TID')) 
 ALTER TABLE T_HOM_ONBRDBILL_C ADD (FBA_D_TID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HOM_ONBRDBILL_C' AND KSQL_COL_NAME IN ('FBB_D_CMPEMPID')) 
 ALTER TABLE T_HOM_ONBRDBILL_C ADD (FBB_D_CMPEMPID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HOM_ONBRDBILL_C' AND KSQL_COL_NAME IN ('FBA_D_CMPEMPID')) 
 ALTER TABLE T_HOM_ONBRDBILL_C ADD (FBA_D_CMPEMPID BIGINT DEFAULT 0 NOT NULL );

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