/**Begin D:\DBA\PDM_UPGRADE\PDM1\BCM_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_BCM_MERGEASSIGNDATA', 'T_BCM_MERGEASSIGNDATA', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BCM_ORGASSIGNFTEMPLATE') CREATE INDEX IDX_BCM_ORGASSIGNFTEMPLATE ON T_BCM_MERGEASSIGNDATA ( FTEMPLATEID );


 EXEC P_ALTERPK 'PK_T_BCM_ORGASSIGNRANGE', 'T_BCM_ORGASSIGNRANGE', 'FENTRYID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BCM_ORGASSIGNRANGE') CREATE INDEX IDX_BCM_ORGASSIGNRANGE ON T_BCM_ORGASSIGNRANGE ( FID );



/**End D:\DBA\PDM_UPGRADE\PDM1\BCM_constraint.sql **/
