/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\HPDI_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HPDI_PAYROLLACTGTPL' AND KSQL_COL_NAME ='FBIZAPPID') 
 ALTER TABLE T_HPDI_PAYROLLACTGTPL ADD (FBIZAPPID VARCHAR(50) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HPDI_PAYROLLACT' AND KSQL_COL_NAME ='FBIZAPPID') 
 ALTER TABLE T_HPDI_PAYROLLACT ADD (FBIZAPPID VARCHAR(50) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HPDI_PAYROLLACT' AND KSQL_COL_NAME ='FPREPAYROLLACTID') 
 ALTER TABLE T_HPDI_PAYROLLACT ADD (FPREPAYROLLACTID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HPDI_TRIGGERCOLLA' AND KSQL_COL_NAME ='FBIZAPPID') 
 ALTER TABLE T_HPDI_TRIGGERCOLLA ADD (FBIZAPPID VARCHAR(50) DEFAULT ' ' NOT NULL );

/**End E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\HPDI_table.sql **/
