/**Begin D:\PDM_UPGRADE\PDM1\HOM_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HOM_ONBRDBILL_B' AND KSQL_COL_NAME ='FVIEWTYPE')
 ALTER TABLE T_HOM_ONBRDBILL_B ADD (FVIEWTYPE VARCHAR(2) DEFAULT '1' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HOM_ONBRDBILL_B' AND KSQL_COL_NAME ='FPERSONFIELDID')
 ALTER TABLE T_HOM_ONBRDBILL_B ADD (FPERSONFIELDID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HOM_ONBRDBILL_B' AND KSQL_COL_NAME ='FEMPLOYEENOSCHEME')
 ALTER TABLE T_HOM_ONBRDBILL_B ADD (FEMPLOYEENOSCHEME VARCHAR(2) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HOM_ONBRDBILL_B' AND KSQL_COL_NAME ='FSERVICEAGESCHEME')
 ALTER TABLE T_HOM_ONBRDBILL_B ADD (FSERVICEAGESCHEME VARCHAR(2) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HOM_ONBRDBILL_B' AND KSQL_COL_NAME ='FOLDEMPLOYEENO')
 ALTER TABLE T_HOM_ONBRDBILL_B ADD (FOLDEMPLOYEENO VARCHAR(50) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HOM_ONBRDBILL_B' AND KSQL_COL_NAME ='FAUTOMATICINFO')
 ALTER TABLE T_HOM_ONBRDBILL_B ADD (FAUTOMATICINFO CHAR(1) DEFAULT '0' NOT NULL );

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