/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\SYS_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_SCH_JOBFORM', 'T_SCH_JOBFORM', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_SCH_JOBFORM_FCREATORID') CREATE INDEX IDX_SCH_JOBFORM_FCREATORID ON T_SCH_JOBFORM ( FCREATORID );

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_SCH_JOBFORM_FTASKID') CREATE INDEX IDX_SCH_JOBFORM_FTASKID ON T_SCH_JOBFORM ( FTASKID );

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_SCH_JOBFORM_FCREATETIME') CREATE INDEX IDX_SCH_JOBFORM_FCREATETIME ON T_SCH_JOBFORM ( FCREATETIME );



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