/**Begin D:\PDM_UPGRADE\PDM1\HOM_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HOM_SSCTASK' AND KSQL_COL_NAME IN ('FVOUCHERNO')) 
 ALTER TABLE T_HOM_SSCTASK ADD (FVOUCHERNO VARCHAR(500) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HOM_SSCTASK' AND KSQL_COL_NAME IN ('FVOUCHERSTAT')) 
 ALTER TABLE T_HOM_SSCTASK ADD (FVOUCHERSTAT VARCHAR(100) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HOM_SSCTASKHIS' AND KSQL_COL_NAME IN ('FVOUCHERNO')) 
 ALTER TABLE T_HOM_SSCTASKHIS ADD (FVOUCHERNO VARCHAR(500) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HOM_SSCTASKHIS' AND KSQL_COL_NAME IN ('FVOUCHERSTAT')) 
 ALTER TABLE T_HOM_SSCTASKHIS ADD (FVOUCHERSTAT VARCHAR(100) DEFAULT ' ' NOT NULL );

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