/**Begin D:\PDM_UPGRADE\PDM1\HOM_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HOM_ONBRDINVITE' AND KSQL_COL_NAME ='FSENDINVITEMESSAGETPLID')
 ALTER TABLE T_HOM_ONBRDINVITE ADD (FSENDINVITEMESSAGETPLID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HOM_ONBRDINVITE' AND KSQL_COL_NAME ='FLOGINSCHEMEID')
 ALTER TABLE T_HOM_ONBRDINVITE ADD (FLOGINSCHEMEID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HOM_ONBRDINVITE' AND KSQL_COL_NAME ='FLOGINREMINDMESSAGETPLID')
 ALTER TABLE T_HOM_ONBRDINVITE ADD (FLOGINREMINDMESSAGETPLID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HOM_ONBRDINVITE' AND KSQL_COL_NAME ='FWELCOMELETTERSENDSTATUS')
 ALTER TABLE T_HOM_ONBRDINVITE ADD (FWELCOMELETTERSENDSTATUS VARCHAR(2) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HOM_ONBRDINVITE' AND KSQL_COL_NAME ='FINVITEMESSAGESENDSTATUS')
 ALTER TABLE T_HOM_ONBRDINVITE ADD (FINVITEMESSAGESENDSTATUS VARCHAR(2) DEFAULT ' ' NOT NULL );

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