/**Begin D:\worktool\PDM_UPGRADE\PDM1\MDS_constraint.sql **/
 EXEC P_ALTERPK 'PK_BD_MANUSTRATEGYGROUP', 'T_BD_MANUSTRATEGYGROUP', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BD_MANUSTRATEGYGROUP_NU') CREATE INDEX IDX_BD_MANUSTRATEGYGROUP_NU ON T_BD_MANUSTRATEGYGROUP ( FNUMBER );


 EXEC P_ALTERPK 'PK_BD_MANUSTRATEGYGROUP_L', 'T_BD_MANUSTRATEGYGROUP_L', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BD_MANUSTRATEGYGROUP_L_ID') CREATE INDEX IDX_BD_MANUSTRATEGYGROUP_L_ID ON T_BD_MANUSTRATEGYGROUP_L ( FID ,FLOCALEID );


 EXEC P_ALTERPK 'PK_BD_STRATEGYGROUPENTRY', 'T_BD_STRATEGYGROUPENTRY', 'FENTRYID', '1';

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



/**End D:\worktool\PDM_UPGRADE\PDM1\MDS_constraint.sql **/
