/**Begin D:\PDM_UPGRADE\PDM1\PUR_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_PUR_ORDERENTRY' AND KSQL_COL_NAME IN ('FEXECUTESCHEDULE')) 
 ALTER TABLE T_PUR_ORDERENTRY ADD (FEXECUTESCHEDULE BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_PUR_ORDERENTRY' AND KSQL_COL_NAME IN ('FSCHEDULEDETAIL')) 
 ALTER TABLE T_PUR_ORDERENTRY ADD (FSCHEDULEDETAIL NVARCHAR(512) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_PUR_ORDERENTRY' AND KSQL_COL_NAME IN ('FEXECUTESDATE')) 
 ALTER TABLE T_PUR_ORDERENTRY ADD (FEXECUTESDATE DATETIME );
 
/**End D:\PDM_UPGRADE\PDM1\PUR_table.sql **/
