/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\SYS_constraint.sql **/
EXEC p_DropIdx 'IDX_SCH_JOB_001', 'T_SCH_JOB';
 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_SCH_JOB_NUMBER') CREATE INDEX IDX_SCH_JOB_NUMBER ON T_SCH_JOB ( FNUMBER );

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_SCH_TASK_FSCHID') CREATE INDEX IDX_SCH_TASK_FSCHID ON T_SCH_TASK ( FSCHEDULEID );


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