/**Begin D:\pdm\PDM_UPGRADE\pdm_new\RIM_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_RIM_INV_ELECTRIC' AND KSQL_COL_NAME ='FSALER_ADDRESS_PHONE') 
 ALTER TABLE T_RIM_INV_ELECTRIC ADD (FSALER_ADDRESS_PHONE NVARCHAR(150) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_RIM_INV_ELECTRIC' AND KSQL_COL_NAME ='FSALER_ACCOUNT') 
 ALTER TABLE T_RIM_INV_ELECTRIC ADD (FSALER_ACCOUNT NVARCHAR(150) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_RIM_INV_ELECTRIC' AND KSQL_COL_NAME ='FBUYER_ADDRESS_PHONE') 
 ALTER TABLE T_RIM_INV_ELECTRIC ADD (FBUYER_ADDRESS_PHONE NVARCHAR(150) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_RIM_INV_ELECTRIC' AND KSQL_COL_NAME ='FBUYER_ACCOUNT') 
 ALTER TABLE T_RIM_INV_ELECTRIC ADD (FBUYER_ACCOUNT NVARCHAR(150) DEFAULT ' ' NOT NULL );

/**End D:\pdm\PDM_UPGRADE\pdm_new\RIM_table.sql **/
