/**BEGIN D:\PDM_UPGRADE\PDM1\POM_TABLE.SQL **/

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IM_MDC_OMCMPLINBILL' AND KSQL_COL_NAME ='FISCHARGEOFFED') 
 ALTER TABLE T_IM_MDC_OMCMPLINBILL ADD (FISCHARGEOFFED  CHAR(1) DEFAULT '0' NOT NULL);
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IM_MDC_OMCMPLINBILL' AND KSQL_COL_NAME ='FISCHARGEOFF') 
 ALTER TABLE T_IM_MDC_OMCMPLINBILL ADD (FISCHARGEOFF CHAR(1) DEFAULT '0' NOT NULL );
 
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IM_MDC_OMCPBILLENTRY_M' AND KSQL_COL_NAME ='FBACKFLUSHSTATUS') 
 ALTER TABLE T_IM_MDC_OMCPBILLENTRY_M ADD (FBACKFLUSHSTATUS VARCHAR(100) DEFAULT 'A' NOT NULL );

 IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_IM_MDC_OMCPBILLENTRY' AND KSQL_COL_NAME ='FLINETYPEID') 
 ALTER TABLE T_IM_MDC_OMCPBILLENTRY ADD (FLINETYPEID  BIGINT DEFAULT 0 NOT NULL);


/**END D:\PDM_UPGRADE\PDM1\POM_TABLE.SQL **/
