/**Begin D:\scm_code\PDM_UPGRADE_1.3\PDM_UPGRADE_1.3\PDM_UPGRADE\pdm2\RIM_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_RIM_INVOICE_FILE' AND KSQL_COL_NAME ='FORIGINAL_STATE') 
 ALTER TABLE T_RIM_INVOICE_FILE ADD (FORIGINAL_STATE NVARCHAR(2) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_RIM_INV_COLLECT_ORG' AND KSQL_COL_NAME ='FCREATETIME') 
 ALTER TABLE T_RIM_INV_COLLECT_ORG ADD (FCREATETIME DATETIME );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_RIM_INV_COLLECT_USER' AND KSQL_COL_NAME ='FCREATETIME') 
 ALTER TABLE T_RIM_INV_COLLECT_USER ADD (FCREATETIME DATETIME );

/**End D:\scm_code\PDM_UPGRADE_1.3\PDM_UPGRADE_1.3\PDM_UPGRADE\pdm2\RIM_table.sql **/
