 EXEC P_ALTERPK 'PK_T_BD_MANUSTRATEGYDIM', 'T_BD_MANUSTRATEGYDIM', 'FID', '1';

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

 EXEC P_ALTERPK 'PK_T_BD_MANUSTRATEGYDIM_L', 'T_BD_MANUSTRATEGYDIM_L', 'FPKID', '1';

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

 EXEC P_ALTERPK 'PK_T_BD_MANUSTRATEGYDOMAIN', 'T_BD_MANUSTRATEGYDOMAIN', 'FID', '1';

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

 EXEC P_ALTERPK 'PK_T_MANUSTRATEGYDOMAIN_L', 'T_BD_MANUSTRATEGYDOMAIN_L', 'FPKID', '1';

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

 EXEC P_ALTERPK 'PK_T_BD_MANUSTRCONFIG', 'T_BD_MANUSTRCONFIG', 'FID', '1';

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

 EXEC P_ALTERPK 'PK_T_BD_MANUSTRCONFIG_L', 'T_BD_MANUSTRCONFIG_L', 'FPKID', '1';

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

 EXEC P_ALTERPK 'PK_T_BD_MANUSTRCONFIGENTRY', 'T_BD_MANUSTRCONFIGENTRY', 'FENTRYID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BD_MANUSTRCONFIGENTRY') CREATE INDEX IDX_BD_MANUSTRCONFIGENTRY ON T_BD_MANUSTRCONFIGENTRY ( FID,FSEQ );

 EXEC P_ALTERPK 'PK_T_BD_MANUSTRCONFIGENTRYE', 'T_BD_MANUSTRCONFIGENTRYE', 'FDETAILID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BD_MANUSTRCONFIGENTRYE') CREATE INDEX IDX_BD_MANUSTRCONFIGENTRYE ON T_BD_MANUSTRCONFIGENTRYE ( FENTRYID,FSEQ );