/**Begin D:\pdm\PDM_UPGRADE_1.3\PDM_UPGRADE_1.3\PDM_UPGRADE\pdm1\RIM_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_RIM_EXPENSE_TYPE' AND KSQL_COL_NAME ='FMODIFIERID') 
 ALTER TABLE T_RIM_EXPENSE_TYPE ADD (FMODIFIERID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_RIM_EXPENSE_TYPE' AND KSQL_COL_NAME ='FCREATORID') 
 ALTER TABLE T_RIM_EXPENSE_TYPE ADD (FCREATORID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_RIM_EXPENSE_TYPE' AND KSQL_COL_NAME ='FCREATETIME') 
 ALTER TABLE T_RIM_EXPENSE_TYPE ADD (FCREATETIME DATETIME );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_RIM_EXPENSE_TYPE' AND KSQL_COL_NAME ='FMODIFYTIME') 
 ALTER TABLE T_RIM_EXPENSE_TYPE ADD (FMODIFYTIME DATETIME );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_RIM_EXPENSE_TYPE' AND KSQL_COL_NAME ='FSTATUS') 
 ALTER TABLE T_RIM_EXPENSE_TYPE ADD (FSTATUS NVARCHAR(10) DEFAULT ' ' NOT NULL );

/**End D:\pdm\PDM_UPGRADE_1.3\PDM_UPGRADE_1.3\PDM_UPGRADE\pdm1\RIM_table.sql **/
