/**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 ('FBA_D_MTID')) 
 ALTER TABLE T_HOM_ONBRDBILL_C ADD (FBA_D_MTID 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 ('FB_EFFECTIVEDATE')) 
 ALTER TABLE T_HOM_ONBRDBILL_C ADD (FB_EFFECTIVEDATE DATETIME );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HOM_ONBRDBILL_C' AND KSQL_COL_NAME IN ('FBB_P_CHGTYPE')) 
 ALTER TABLE T_HOM_ONBRDBILL_C ADD (FBB_P_CHGTYPE VARCHAR(2) DEFAULT ' ' 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_CHGTYPE')) 
 ALTER TABLE T_HOM_ONBRDBILL_C ADD (FBA_P_CHGTYPE VARCHAR(2) DEFAULT ' ' 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_CHGTYPE')) 
 ALTER TABLE T_HOM_ONBRDBILL_C ADD (FBB_E_CHGTYPE VARCHAR(2) DEFAULT ' ' 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_CHGTYPE')) 
 ALTER TABLE T_HOM_ONBRDBILL_C ADD (FBA_E_CHGTYPE VARCHAR(2) DEFAULT ' ' 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_CHGTYPE')) 
 ALTER TABLE T_HOM_ONBRDBILL_C ADD (FBB_D_CHGTYPE VARCHAR(2) DEFAULT ' ' 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_CHGTYPE')) 
 ALTER TABLE T_HOM_ONBRDBILL_C ADD (FBA_D_CHGTYPE VARCHAR(2) DEFAULT ' ' 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_BUSINESSSTATUS')) 
 ALTER TABLE T_HOM_ONBRDBILL_C ADD (FBA_D_BUSINESSSTATUS VARCHAR(2) DEFAULT ' ' NOT NULL );

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