/**Begin D:\datamodel\imc\1.5\main\rim\pdm\20210606\RIM_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_RIM_INVOICE' AND KSQL_COL_NAME ='FCHECK_RESULT') 
 ALTER TABLE T_RIM_INVOICE ADD (FCHECK_RESULT NVARCHAR(50) DEFAULT ' ' NOT NULL );
 EXEC p_AlterColumn 'T_RIM_VERIFY', 'FSEQUENCE_TYPE', 'NVARCHAR(30)', 'NOT NULL', '0100', ''' ''';

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_RIM_EXPENSE_RELATION' AND KSQL_COL_NAME ='FREIMBURSINGID') 
 ALTER TABLE T_RIM_EXPENSE_RELATION ADD (FREIMBURSINGID NVARCHAR(50) DEFAULT ' ' NOT NULL );

/**End D:\datamodel\imc\1.5\main\rim\pdm\20210606\RIM_table.sql **/
