/**Begin D:\PDM_UPGRADE\PDM1\ER_table.sql **/

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_REL_EXP_RATETYPE' AND KSQL_COL_NAME ='FDESCRIPTION') 
 ALTER TABLE T_ER_REL_EXP_RATETYPE ADD (FDESCRIPTION NVARCHAR(255) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_REL_EXP_RATETYPE' AND KSQL_COL_NAME ='FAPPLIER') 
 ALTER TABLE T_ER_REL_EXP_RATETYPE ADD (FAPPLIER BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_REL_EXP_RATETYPE' AND KSQL_COL_NAME ='FCOMPANY') 
 ALTER TABLE T_ER_REL_EXP_RATETYPE ADD (FCOMPANY BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_ER_REL_EXP_RATETYPE' AND KSQL_COL_NAME ='FRELBILLTYPE') 
 ALTER TABLE T_ER_REL_EXP_RATETYPE ADD (FRELBILLTYPE VARCHAR(10) DEFAULT ' ' NOT NULL );

/**End D:\PDM_UPGRADE\PDM1\ER_table.sql **/
