/**Begin D:\pdm\PDM_UPGRADE\pdm_new\RIM_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_RIM_INVSIGN_LOG_ITEM' AND KSQL_COL_NAME ='FINVOICE_CODE') 
 ALTER TABLE T_RIM_INVSIGN_LOG_ITEM ADD (FINVOICE_CODE NVARCHAR(50) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_RIM_INVSIGN_LOG_ITEM' AND KSQL_COL_NAME ='FVERIFY_MSG') 
 ALTER TABLE T_RIM_INVSIGN_LOG_ITEM ADD (FVERIFY_MSG NVARCHAR(1000) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_RIM_INVSIGN_LOG_ITEM' AND KSQL_COL_NAME ='FEXISTS_NUM') 
 ALTER TABLE T_RIM_INVSIGN_LOG_ITEM ADD (FEXISTS_NUM NVARCHAR(500) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_RIM_INVSIGN_LOG_ITEM' AND KSQL_COL_NAME ='FEXPENSE_STATUS') 
 ALTER TABLE T_RIM_INVSIGN_LOG_ITEM ADD (FEXPENSE_STATUS NVARCHAR(10) DEFAULT ' ' NOT NULL );

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