/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\SYS_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_SCH_JOB_N' AND KSQL_COL_NAME ='FOVERTIME') 
 ALTER TABLE T_SCH_JOB_N ADD (FOVERTIME CHAR(1) DEFAULT '0' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_SCH_JOB_N' AND KSQL_COL_NAME ='FJOBMSGRECEIVER') 
 ALTER TABLE T_SCH_JOB_N ADD (FJOBMSGRECEIVER BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_SCH_SCHEDULE_N' AND KSQL_COL_NAME ='FSTIMEOUT') 
 ALTER TABLE T_SCH_SCHEDULE_N ADD (FSTIMEOUT CHAR(1) DEFAULT '0' NOT NULL );

/**End E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\SYS_table.sql **/
