/**Begin D:\worktool\PDM_UPGRADE\PDM1\MDS_constraint.sql **/
 EXEC P_ALTERPK 'PK_BD_MANUSTRASSENT', 'T_BD_MANUSTRASSENT', 'FENTRYID', '1';

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


 EXEC P_ALTERPK 'PK_BD_MANUSTRASSENT_L', 'T_BD_MANUSTRASSENT_L', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BD_MANUSTRASSENT_L_LO') CREATE INDEX IDX_BD_MANUSTRASSENT_L_LO ON T_BD_MANUSTRASSENT_L ( FLOCALEID ,FENTRYID );


 EXEC P_ALTERPK 'PK_BD_MANUSTRASSIGN', 'T_BD_MANUSTRASSIGN', 'FID', '1';

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


 EXEC P_ALTERPK 'PK_BD_MANUSTRASSIGN_L', 'T_BD_MANUSTRASSIGN_L', 'FPKID', '1';

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



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