/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\IM_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IM_ASSEMBBILLENTRY' AND KSQL_COL_NAME ='FMVERSION') 
 ALTER TABLE T_IM_ASSEMBBILLENTRY ADD (FMVERSION BIGINT DEFAULT 0 NOT NULL );
 IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IM_ASSEMBBILLSUBENTRY' AND KSQL_COL_NAME ='FMVERSION') 
 ALTER TABLE T_IM_ASSEMBBILLSUBENTRY ADD (FMVERSION BIGINT DEFAULT 0 NOT NULL );
 
 IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IM_PURRECBILL_F' AND KSQL_COL_NAME ='FEXRATETABLE') 
 ALTER TABLE T_IM_PURRECBILL_F ADD (FEXRATETABLE BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IM_PURRECBILL_F' AND KSQL_COL_NAME ='FEXRATEDATE') 
 ALTER TABLE T_IM_PURRECBILL_F ADD (FEXRATEDATE DATETIME );
 
/**End E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\IM_table.sql **/
