/**Begin C:\PDM_UPGRADE\PDM1\PUR_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_PUR_NOTICE_A' AND KSQL_COL_NAME IN ('FPARENTID')) 
 ALTER TABLE T_PUR_NOTICE_A ADD (FPARENTID VARCHAR(50) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_PUR_NOTICE_A' AND KSQL_COL_NAME IN ('FPENTITYKEY')) 
 ALTER TABLE T_PUR_NOTICE_A ADD (FPENTITYKEY VARCHAR(50) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_PUR_NOTICE_A' AND KSQL_COL_NAME IN ('FENTITYKEY')) 
 ALTER TABLE T_PUR_NOTICE_A ADD (FENTITYKEY VARCHAR(50) DEFAULT ' ' NOT NULL );
/**End C:\PDM_UPGRADE\PDM1\PUR_table.sql **/
