/**Begin D:\scm_code\dev_scm\dbschema\imc\1.5\main\rim\pdm\20210712\RIM_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_RIM_INVOICE_UNCHECK' AND KSQL_COL_NAME ='FSOURCE_AREA') 
 ALTER TABLE T_RIM_INVOICE_UNCHECK ADD (FSOURCE_AREA NVARCHAR(150) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_RIM_INVOICE_UNCHECK' AND KSQL_COL_NAME ='FDEST_AREA') 
 ALTER TABLE T_RIM_INVOICE_UNCHECK ADD (FDEST_AREA NVARCHAR(150) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_RIM_INVOICE' AND KSQL_COL_NAME ='FSOURCE_AREA') 
 ALTER TABLE T_RIM_INVOICE ADD (FSOURCE_AREA NVARCHAR(150) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_RIM_INVOICE' AND KSQL_COL_NAME ='FDEST_AREA') 
 ALTER TABLE T_RIM_INVOICE ADD (FDEST_AREA NVARCHAR(150) DEFAULT ' ' NOT NULL );

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