/**Begin D:\scm_code\dev_scm\dbschema\imc\1.5\main\rim\pdm\20210625\RIM_table.sql **/
 EXEC p_AlterColumn 'T_RIM_INVOICE_UNCHECK', 'FEXPENSE_NO', 'NVARCHAR(500)', 'NOT NULL', '0100', ''' ''';

 EXEC p_AlterColumn 'T_RIM_INVOICE_UNCHECK', 'FVOUCH_NO', 'NVARCHAR(500)', 'NOT NULL', '0100', ''' ''';

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_RIM_INVOICE_UNCHECK' AND KSQL_COL_NAME ='FCOMPANY_SEAL') 
 ALTER TABLE T_RIM_INVOICE_UNCHECK ADD (FCOMPANY_SEAL NVARCHAR(2) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_RIM_INVOICE_UNCHECK' AND KSQL_COL_NAME ='FCONTINUOUS_NO') 
 ALTER TABLE T_RIM_INVOICE_UNCHECK ADD (FCONTINUOUS_NO NVARCHAR(2) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_RIM_INVOICE' AND KSQL_COL_NAME ='FCOMPANY_SEAL') 
 ALTER TABLE T_RIM_INVOICE ADD (FCOMPANY_SEAL NVARCHAR(2) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_RIM_INVOICE' AND KSQL_COL_NAME ='FCONTINUOUS_NO') 
 ALTER TABLE T_RIM_INVOICE ADD (FCONTINUOUS_NO NVARCHAR(2) DEFAULT ' ' NOT NULL );

/**End D:\scm_code\dev_scm\dbschema\imc\1.5\main\rim\pdm\20210625\RIM_table.sql **/
