/**Begin D:\pdm\PDM_UPGRADE\pdm_new\RIM_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_RIM_INVOICE_FILE_HIS' AND KSQL_COL_NAME ='FOPERATE_TIME') 
 ALTER TABLE T_RIM_INVOICE_FILE_HIS ADD (FOPERATE_TIME DATETIME );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_RIM_INVOICE_FILE_HIS' AND KSQL_COL_NAME ='FTRACEID') 
 ALTER TABLE T_RIM_INVOICE_FILE_HIS ADD (FTRACEID NVARCHAR(50) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_RIM_INVOICE_FILE_HIS' AND KSQL_COL_NAME ='FCREATER') 
 ALTER TABLE T_RIM_INVOICE_FILE_HIS ADD (FCREATER BIGINT DEFAULT 0 NOT NULL );

/**End D:\pdm\PDM_UPGRADE\pdm_new\RIM_table.sql **/
