/**Begin D:\PDM_UPGRADE\PDM1\POM_table.sql **/

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IM_MDC_PRODUCTINBILL' AND KSQL_COL_NAME ='FLASTUPDATEUSERID') 
 ALTER TABLE T_IM_MDC_PRODUCTINBILL ADD (FLASTUPDATEUSERID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IM_MDC_PRODUCTINBILL' AND KSQL_COL_NAME ='FLASTUPDATETIME') 
 ALTER TABLE T_IM_MDC_PRODUCTINBILL ADD (FLASTUPDATETIME DATETIME );
 
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IM_MDC_MREQOUTBILL' AND KSQL_COL_NAME ='FLASTUPDATEUSERID') 
 ALTER TABLE T_IM_MDC_MREQOUTBILL ADD (FLASTUPDATEUSERID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IM_MDC_MREQOUTBILL' AND KSQL_COL_NAME ='FLASTUPDATETIME') 
 ALTER TABLE T_IM_MDC_MREQOUTBILL ADD (FLASTUPDATETIME DATETIME );

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IM_MDC_OMOUTBILL' AND KSQL_COL_NAME ='FLASTUPDATEUSERID') 
 ALTER TABLE T_IM_MDC_OMOUTBILL ADD (FLASTUPDATEUSERID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IM_MDC_OMOUTBILL' AND KSQL_COL_NAME ='FLASTUPDATETIME') 
 ALTER TABLE T_IM_MDC_OMOUTBILL ADD (FLASTUPDATETIME DATETIME );
 
 IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IM_MDC_OMCMPLINBILL' AND KSQL_COL_NAME ='FLASTUPDATEUSERID') 
 ALTER TABLE T_IM_MDC_OMCMPLINBILL ADD (FLASTUPDATEUSERID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IM_MDC_OMCMPLINBILL' AND KSQL_COL_NAME ='FLASTUPDATETIME') 
 ALTER TABLE T_IM_MDC_OMCMPLINBILL ADD (FLASTUPDATETIME DATETIME );
 
/**End D:\PDM_UPGRADE\PDM1\POM_table.sql **/
