/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\TCTB_constraint.sql **/
 EXEC P_ALTERPK 'PK_TCTB_TASK_DETAIL', 'T_TCTB_TASK_DETAIL', 'FID', '1';

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


 EXEC P_ALTERPK 'PK_TCTB_TASK_MONITOR', 'T_TCTB_TASK_MONITOR', 'FID', '1';

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



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