/**Begin D:\tools\db\PDM_UPGRADE_1.3\PDM_UPGRADE\pdm1\RIM_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_RIM_BLACK_LIST_DATA' AND KSQL_COL_NAME ='FCREATE_DATE') 
 ALTER TABLE T_RIM_BLACK_LIST_DATA ADD (FCREATE_DATE DATETIME );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_RIM_BLACK_LIST_DATA' AND KSQL_COL_NAME ='FUPDATE_DATE') 
 ALTER TABLE T_RIM_BLACK_LIST_DATA ADD (FUPDATE_DATE DATETIME );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_RIM_BLACK_LIST_DATA' AND KSQL_COL_NAME ='FREGISTER_DATE') 
 ALTER TABLE T_RIM_BLACK_LIST_DATA ADD (FREGISTER_DATE DATETIME );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_RIM_BLACK_LIST_DATA' AND KSQL_COL_NAME ='FPUBLIC_DATE') 
 ALTER TABLE T_RIM_BLACK_LIST_DATA ADD (FPUBLIC_DATE DATETIME );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_RIM_BLACK_LIST_DATA' AND KSQL_COL_NAME ='FBLACK_LIST_TYPE') 
 ALTER TABLE T_RIM_BLACK_LIST_DATA ADD (FBLACK_LIST_TYPE NVARCHAR(5) DEFAULT ' ' );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_RIM_BLACK_LIST_DATA' AND KSQL_COL_NAME ='FCOUNT') 
 ALTER TABLE T_RIM_BLACK_LIST_DATA ADD (FCOUNT NVARCHAR(8) DEFAULT ' ' );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_RIM_BLACK_LIST_DATA' AND KSQL_COL_NAME ='FEXECUTE_DEPARTMENT') 
 ALTER TABLE T_RIM_BLACK_LIST_DATA ADD (FEXECUTE_DEPARTMENT NVARCHAR(100) DEFAULT ' ' );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_RIM_BLACK_LIST_DATA' AND KSQL_COL_NAME ='FEXECUTE_RESULT') 
 ALTER TABLE T_RIM_BLACK_LIST_DATA ADD (FEXECUTE_RESULT NVARCHAR(100) DEFAULT ' ' );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_RIM_BLACK_LIST_DATA' AND KSQL_COL_NAME ='FEXECUTE_NO') 
 ALTER TABLE T_RIM_BLACK_LIST_DATA ADD (FEXECUTE_NO NVARCHAR(50) DEFAULT ' ' );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_RIM_BLACK_LIST_DATA' AND KSQL_COL_NAME ='FCASE_TYPE') 
 ALTER TABLE T_RIM_BLACK_LIST_DATA ADD (FCASE_TYPE NVARCHAR(100) DEFAULT ' ' );

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