/**Begin D:\PDM\PDM_UPGRADE\pdm1\BCM_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_BCM_CHECKTMPL_ACT', 'T_BCM_CHECKTMPL_ACT', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BCM_CHECKTMPL_ACT_ENTRY') CREATE INDEX IDX_BCM_CHECKTMPL_ACT_ENTRY ON T_BCM_CHECKTMPL_ACT ( FENTRYID );


 EXEC P_ALTERPK 'PK_T_BCM_CHECKTMPL_ACT2', 'T_BCM_CHECKTMPL_ACT2', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BCM_CHECKTMPL_ACT2_ENTRY') CREATE INDEX IDX_BCM_CHECKTMPL_ACT2_ENTRY ON T_BCM_CHECKTMPL_ACT2 ( FENTRYID );



/**End D:\PDM\PDM_UPGRADE\pdm1\BCM_constraint.sql **/
